set filename in Applescript from RunRev, OSX

Ian Wood revlist at azurevision.co.uk
Wed May 30 15:45:14 EDT 2007


On 30 May 2007, at 20:16, R. Hillen wrote:

> answer file "what file to attach?"
> put it into AttachFileName
> replace theAttachment with AttachFileName in field "MyScript"
> do field MyScript as Applescript

replace theAttachment with revMacFromUnixPath(AttachFileName) in  
field "MyScript"

revMacFromUnixPath will convert Rev's Unix-style internal paths into  
the colon-delimited paths that AppleScript and Classic understand.

You can go back the other way with revUnixFromMacpath.

Ian



More information about the use-livecode mailing list