Re: Photoshop opening file
Re: Photoshop opening file
- Subject: Re: Photoshop opening file
- From: Matthew Rogers <email@hidden>
- Date: Thu, 30 Jan 2003 21:36:45 +0000
Hi Rick,
Try this:
on run
set folder1 to (choose folder) as alias
tell application "Finder"
set filesList to files in folder1
end tell
repeat with aFile in filesList
tell application "Finder"
set theFile to aFile as alias
set theFileName to name of theFile
end tell
tell application "Adobe Photoshop 7.0"
activate
set display dialogs to never
open theFile
end tell
end run
Matt
On Thursday, January 30, 2003, at 04:45 pm, Rick Norman wrote:
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.