Re: Photoshop opening file
Re: Photoshop opening file
- Subject: Re: Photoshop opening file
- From: Ruediger Weiss-Mazzoni <email@hidden>
- Date: Fri, 31 Jan 2003 00:07:39 +0100
Hi,
I checked the script and played with it a little bit in PS 7 on Mac OS
X 10.2.3
This script works fine as droplet or on double-clicking. :-)
The 'list folder' method that you have used does only return the simple
name of the files, but not the path nor the alias. Try using 'files in'
from the Finder.app to get an alias of a file, which can then be used
as a reference to be opened from another application.
bye Rudi
<applescript>
on run
-- set theFolder to "Ten:Users:ruediger:Desktop:images"
set theFolder to choose folder
openImages(theFolder)
end run
on open {theFolderItems}
openImages(theFolderItems)
end open
on openImages(theFolder)
tell application "Finder"
set itemList to files in theFolder
repeat with an_item in itemList
tell application "Adobe Photoshop 7.0"
activate
open an_item
-- put your actions / scripts here
-- do script "page1"
end tell
end repeat
end tell
end openImages
</applescript>
Am Donnerstag, 30.01.03 um 17:45 Uhr schrieb Rick Norman:
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.