Re-2: answer folder "sdsds";launch document it

Klaus Major klaus at major-k.de
Sat Nov 24 06:31:42 EST 2007


Hi Andre,

> Klaus,
>
> you can achieve the same result in Mac OS X with the following shell  
> command:
>
> cd /your/path/here; open .
>
> It's cd to the folder you want and then execute "open .", open and a
> space and a dot. This will open the folder in the finder.

thanks I know and use this and this one for windows:
## was = name of folder to open
...
    set the hideconsolewindows to true
     replace "/" with "\" in was
     get shell("explorer.exe /root," && was)
...

Using "launch document folder_name" is much easier :-)
An no need to check for the platform, too!

And yes, AppleScript IS cumbersome!
Imagine Apple would have chosen HyperTalk for the Mac system scripting  
language
as they actually had planned... Sigh :-)


But WAIT!!!
Just tested it again and this still works here for me on OS X 10.5.1  
and Rev 2.9dp2!

Hmmmm. One would need to know if this is somewhat "officially"  
supported by Rev.


Best

Klaus Major
klaus at major-k.de
http://www.major-k.de





More information about the use-livecode mailing list