I don't have CS5 and for the most part I now 'attempt' to use extendscript with my CS apps… There are several post as of late about slight changes needed to the syntax when passing files to open using CS5. CS5 also needed some patch as something got broken with the dictionary and its terms… A search within this forum should give you all you need to get going again…
Thanks for the reply, I've been doing a bit of reading on here and thought I had it all figured out. I've installed the patch and made the syntax changes that I found referenced in the forums. All works fine except opening a file from a server volume. Telling the Finder to open the file works fine, but I really need to tell Photoshop to open the file to insure that the script runs correctly.
Sorry but Im stuck with using CS2 and my trial of CS5 is over (except for bridge…) I do now notice that you have a typo error in your original post but other than that Im not going to be able to help much further… You have set your variable 'fileA' to a path to one file the JPEG then again to the TIFF when your script gets to open 'fileB' it won't be a valid path? Have you already spotted this?
Nice catch! Unfortunately, the code I posted was only an example, and the typo was just that, a typo. Here it is with the correction in all its glory (and a couple more notes)...
set fileA to "LocalDrive:Folder:thisFileA.jpg" -- JPG stored on local drive
set fileB to "PostVolume:JOBS:ThisJob:ThisFileB.tif" -- TIFF stored on server volume
tell application "Adobe Photoshop CS5"
-- JPG stored on local drive
-- this file opens correctly, with no "browse" dialog
open alias fileA
-- TIFF stored on server volume
-- when PS CS5 trys to open this file, I get a "browse" dialog. If I compile for CS3 or CS4, the file opens as it should.
open alias fileB
The server volume is mounted via AFP. (It's a xserve running server 10.4.x) Thanks again for looking into it!
Im not able to help but you may want to post your problem over at…
There maybe someone with the same set up as you there that could shed some light on this… We have tiger xserves but only CS2…