OT: Apple Script Paths -- Image Processing

Ken Ray kray at sonsothunder.com
Wed Feb 7 01:32:32 EST 2007


On Tue, 06 Feb 2007 13:55:22 -1000, Sivakatirswami wrote:

> in theory I should be able to dig the name of the machine with a POSIX
> conversion like this:
> where Rev is passing "/Users/katir/Desktop/someFooPhoto.jpg"  to the script
> 
> tell application "Finder:
> set tPath to "/Users/katir/Desktop/someFooPhoto.jpg"
> set tImagePath to POSIX file tPath
>   #should return according to discussions on lists on the net:
> file --> ""Macintosh HD:Users:katir:Desktop:someFooPhoto.jpg"
> 
> But I'm still getting an error msg,
> 
> "Finder got an error: Can't get POSIX file
>  "/Users/katir/ RevData/ApplicationGraphics/test/IMG_6890.jpg"

Try doing:

  set tImagePath to POSIX file tPath as string

HTH,

Ken Ray
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/



More information about the use-livecode mailing list