• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Image Events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: Re: Adding extensions to a large batch of files
  • Next by Date: Any way in applescript to use an image as a folder icon?
  • Previous by thread: Image Events
  • Next by thread: Image Events
  • Index(es):
    • Date
    • Thread