Jim, try
set filePath to POSIX file "/Users/jimsims/Pictures/art/01pigs1.500.jpg" as text this gives you something like: "Macintosh HD:Users:jimsims:Pictures:art:01pigs1.500.jpg" then you use this to open files without the 'as posix file', this should work for all scriptable programs. I dont have Photoshop elements, so I can not try this but the format you get in filePath is the standard text format for a path on a Mac. The posix variant ist probably not understood by Photoshop elements and was introduced to make calls to the shell easier. it should work regards to you and your pigs :) Bernd Jim Sims wrote: > > --The following works > set filepath to "/Users/jimsims/Pictures/art/01pigs1.500.jpg" > tell application "Preview" > activate > open file filepath as POSIX file > end tell > > -- This works ONLY if I drop the POSIX > set filepath to "/Users/jimsims/Pictures/art/01pigs1.500.jpg" > tell application "Photoshop Elements 4.0" > activate > open file filepath -- as POSIX file > end tell > > Why does Photoshop Elements 4.0 refuse and Preview say OK? > > I need to open files in particular applications (not just the default > application). Launch seems interesting but only useful if one is > opening the application for the first time. I only need this for OS X. > > Surely there is some kind of universal way to open files with a given > application on OS X? > > > sims > -- View this message in context: http://www.nabble.com/open-file%2C-applescript%2C-POSIX-tp23354158p23354902.html Sent from the Revolution - User mailing list archive at Nabble.com. _______________________________________________ use-revolution mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
