• 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 event scripting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Image event scripting


  • Subject: Re: Image event scripting
  • From: yvan-koenig <email@hidden>
  • Date: Fri, 18 Mar 2005 09:16:17 +0100


Le 18 mars 2005 , à 5:33, mark a écrit :

set this_file to choose file
try
tell application "Image Events"
launch
set this_image to open this_file
flip this_image with horizontal
rotate this_image to angle 270
pad this_image to dimensions {640, 480}
scale this_image by factor 0.75 --note: "scale this_image to by factor 0.75" in
documents wouldn't compile.
save this_image with icon
close this_image saving ask
end tell
on error error_message
display dialog error_message
end try

Hello

(1) on my machine, the "save this_image with icon" instruction does its job and I get the modified file.

(2) of course, when the script try to exec "close this_image saving ask",
it has no reason to "ask" because there is no new saving required
as no change where introduced between it and the last save.
remember what is written in the dictionary:

close reference -- the object for the command
[saving yes/no/ask] -- Specifies whether changes should be saved before closing
.

scale this_image by factor 0.75
--save this_image with icon
close this_image saving yes

works ( but don't add the icon).

scale this_image by factor 0.75
--save this_image with icon
close this_image saving ask

does nothing on my machine.

Yvan KOENIG
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Image event scripting (From: mark <email@hidden>)

  • Prev by Date: Re: iCal organization with dates & events & lists....
  • Next by Date: Re: iCal organization with dates & events & lists....
  • Previous by thread: Image event scripting
  • Next by thread: Mail.app script help needed
  • Index(es):
    • Date
    • Thread