[X-Unix] Standard Protocol Equivalent for Terminal "open" Command??

david macosxforme at gmail.com
Fri Nov 2 13:29:41 PDT 2007


On Nov 2, 2007, at 4:01 PM, Rick Gordon wrote:

> [Cross-posted to the OS X for Users list, but with no response to  
> date]
>
> Is there any standard (or easily distributable) protocol  
> (syntactically like http, file, ftp, etc.) that can be prefixed to  
> a POSIX path that can duplicate a Terminal "open" command? So that  
> (assuming that the protocol was "open"):
>
> open:///Library/Application%20Support would open the global  
> Application Support folder in the Finder, or
> open:///Applications/Utilities/Disk%20Utility.app would launch the  
> Disk Utility application, or
> reveal:///Applications/Utilities/Disk%20Utility.app would reveal  
> the Disk Utility application in the Finder?
>
> Some thing like that would be a boon for technical support emails  
> requiring an unsophisticated user to easily access a file or  
> folder, without having to laboriously explain the file path.
> -- 

Why not simply use:

open /Applications/Utilities/Disk\ Utility.app

  or for a file path:

open /Library/Application\ Support

You can even bundle it within a double-clickable AppleScript if you  
want.

ie, via:

do shell script "open /Applications/Utilities/Disk\ Utility.app"

although you can do that via AppleScript itself.


More information about the X-Unix mailing list