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

Mark Smith mark at maseurope.net
Fri Nov 23 23:05:04 EST 2007


Just a bit of checking, and what seems to work on OS X is :

on openInFinder pPath
   get shell("open" && quote & pPath & quote) -- quotes are only  
necessary if there are spaces in pPath
end openInFinder

I'll bet there's a similar command on Windows.

If you want to use applescript, I'm pretty sure you can just <replace  
"/" with ":" in somePath> before you insert in to your ascript. But  
the shell is probably simpler for this sort of thing.

Best,

Mark

On 24 Nov 2007, at 03:18, Andre Garzia wrote:

> 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.
>
> In windows, I don't know but I bet it can be done with vbscript. And
> it also can be done with applescript in mac os x with something like:
>
> tell application "finder"
>   reveal folder "my folder" in folder "my parent folder" in startup  
> disk
> end tell
>
> Which I find rather cumbersome, why applescript do not support POSIX
> folders? (actually I think it does, but I don't know how to use them.)
>
> Cheers
> andre
>
> On 11/23/07, Klaus Major <klaus at major-k.de> wrote:
>> Hi Mad-Hias ;-)
>>
>>> I vote for this feature, too.
>>> It´s much easier than using the shell command to open a folder under
>>> windows.
>>
>> There is a related "enhancement" in the RevQalityCenter.
>> Check bug #5549.
>>
>> I will add this one tomorrow...
>>
>>> Matthias Rebbe
>>
>> Best
>>
>> Klaus Major
>> klaus at major-k.de
>> http://www.major-k.de
>>
>>
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your  
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>
>
> -- 
> http://www.andregarzia.com All We Do Is Code.
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list