Re: Photoshop opening file
Re: Photoshop opening file
- Subject: Re: Photoshop opening file
- From: Duncan Cowan <email@hidden>
- Date: Fri, 31 Jan 2003 08:20:27 +1100
You aren't giving Photoshop the full path to the file.
Listing the folder will only give you the file names as a list.
As you have already given AS the folder containing the files, it's just a
matter of adding that to the mix.
on open theFolder
set itemList to list folder theFolder
repeat with i from 1 to count of itemList
set pix to ((theFolder) as string) & item i in itemList
tell application "Adobe. Photoshop. 6.0.1"
activate
open alias pix -- need alias here
end tell
end repeat
end open
From: Rick Norman <email@hidden>
Date: Thu, 30 Jan 2003 10:45:47 -0600
To: <email@hidden>
Subject: Photoshop opening file
Can someone tell me what I'm missing here.
Thanks,
Rick
on open theFolder
set itemList to list folder theFolder
set X to 1
repeat with an_item in itemList
set pix to item X in itemList as string
tell application "Adobe. Photoshop. 5.5"
activate
--> Tried this with these results.
open file pix --> The error returned with this is "Some object
wasn't found"
--> Tried this with these results.
open file (the file pix as string) --> The error returned with
this is "Can't make file "filename" of "Adobe. Photoshop. 5.5" into a
string.
do script "page1"
end tell
set X to X + 1
end repeat
end open
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.