simple applescript?
Ben Rubinstein
benr_mc at cogapp.com
Fri Dec 10 07:10:00 EST 2004
Chipp wrote:
> Hi all. Need a bit of help here...why doesn't this work?
>
> on mouseUp
> answer file ""
> if it is empty then exit to top
> put it into pPDFpath
> replace "/" with ":" in pPDFpath
> if char 1 of pPDFpath is ":" then delete char 1 of pPDFpath
> put "tell application " "e& "Finder" & quote & cr into tScript
> put "set the file type of " "e& pPDFpath "e& \
> " to " "e& "PDF " "e& cr after tScript
> put "end tell" after tScript
> do tScript as Applescript
> put the result into sError
> end mouseUp
Hi Chip,
I think you need "file" before the path, ie
put "set the file type of file " "e& pPDFpath "e& \
" to " "e& "PDF " "e& cr after tScript
HTH,
Ben Rubinstein | Email: benr_mc at cogapp.com
Cognitive Applications Ltd | Phone: +44 (0)1273-821600
http://www.cogapp.com | Fax : +44 (0)1273-728866
More information about the use-livecode
mailing list