Revolution filepath to Applescript file: how to?

Sarah Reichelt sarahr at genesearch.com.au
Tue Aug 2 18:01:07 EDT 2005


> I am looking for a script to convert a filepath to an Applescript  
> file statement. For example:
>   "/Users/toto/Desktop/Image 6.png" => file "Image 6.png" in the  
> folder "Desktop" in home

You need the revMacfromUnixPath function. To use your example file path:

revMacFromUnixPath("/Users/toto/Desktop/Image 6.png")
-> Macintosh HD:Users:toto:Desktop:Image 6.png

Cheers,
Sarah




More information about the use-livecode mailing list