RE: Scripting Graphic Converter batch droplet
RE: Scripting Graphic Converter batch droplet
- Subject: RE: Scripting Graphic Converter batch droplet
- From: Brian Mather <email@hidden>
- Date: Tue, 17 Apr 2001 17:56:31 -0400
I don't have Graphic Converter (and hesitate to offer advice when I'm unsure
of its accuracy or usefulness) but that notwithstanding <gupl, here goes>
It looks to me that you never tell either the finder or graphic Converter to
open the file.
Have you tried adding an open command to your repeat loop as opposed to
using the on open handler? Isn't the on open handler syntax used to tell a
script/droplet/applet what to do when opening?
Does this work?
--remove comment marks to test
(*
set thisFile to choose file with prompt
*)
tell application "GraphicConverter PPC"
repeat with thisFile
open thisFile
set resolution of window to {72, 72}
end repeat
end tell
Brian Mather
Digital Photographer
Global Sports Interactive
610-491-7091
http://www.globalsports.com
-----Original Message-----
From: T.J. Mahaffey [SMTP:email@hidden]
Sent: Tuesday, April 17, 2001 4:20 PM
To: email@hidden
Subject: Scripting Graphic Converter batch droplet
Ok, folks. I'm only posting his after pushing myself to baldness.
What the heck am I doing wrong here?
on open (fileList)
tell application "GraphicConverter PPC"
activate
repeat with thisFile in fileList
set resolution of window (thisFile as alias) to {72, 72}
end repeat
end tell
end open
I'm getting various errors, no matter how I try to strip it down and
work up
from smaller, less-ambitious scripts. I can get the resolution
command to
work, but ONLY IF I have an image open already and I tell it to act
on the
pre-opened image.
T.J. Mahaffey
email@hidden
_______________________________________________
applescript-users mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/applescript-users