Re: Image Events
Re: Image Events
- Subject: Re: Image Events
- From: Graff <email@hidden>
- Date: Thu, 03 Jun 2004 21:43:19 -0400
You need to refer to the image by name, not as a variable. Here's an
example script:
----
set theFile to choose file
tell application "Image Events"
set theName to name of theFile
open theFile
scale image theName by factor 0.5
save image theName in (path to desktop as string) & "scaled - " &
theName
close image theFile
end tell
- Ken
On Jun 3, 2004, at 8:32 PM, Tim Mansour wrote:
Just wondering if anyone has been scripting using Image Events in
10.3? I'm wondering if what I'm experiencing is bugs or my coding...
sometimes it works, sometimes it doesn't. Usually involves something
like this:
tell application "Image Events"
set thisImage to open file "path:to:file:foo.jpg"
scale thisImage to size 200
...
at which point I get "thisImage is not defined".
_______________________________________________
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.
References: | |
| >Image Events (From: Tim Mansour <email@hidden>) |