Creating a simple application from AppleScript


Recommended Posts

I just bought an HP External hard drive and it comes with this annoying backup software that's made for Windows only. Every time the drive mounts, a HP Launcher virtual disc mounts with it. If I try to eject, it just keeps coming back. The only way I found to rid of it was using this code in Terminal:

diskutil unmount "/Volumes/HP Launcher"

I googled some solutions and the best way I found was to create a simple application using AppleScript Editor and have launch at login.

Does anyone know how to make the above code into an application or offer another solution for me?

Link to comment
Share on other sites

Yea I formatted the drive with Disk Utility but from what I've read, the software is built into the firmware of the enclosure. I'll give those code a try. Thanks.

Link to comment
Share on other sites

do shell script "diskutil unmount /Volumes/HP Launcher/"

You've tried formatting the drive though right? With it set to GUID?

Those damn partitions are usually on a flash chip inside the enclosure, which means no amount of partitioning and partition map changing will get rid of it. I had an enclosure like that and chucked it because it was so annoying. :p

Link to comment
Share on other sites

do shell script "diskutil unmount /Volumes/HP Launcher/"

That didn't seem to do it. I just pasted that code into AppleScript and saved it as an application. When I try to run it, I get this:

dfg.jpg

Any thoughts?

Link to comment
Share on other sites

Woops, forgot about the space in the path. It needs two backslashes in applescript.

do shell script "diskutil unmount /Volumes/HP\\ Launcher/"

Could also probably use

tell application "Finder" 
eject disk "HP Launcher"
end tell

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.