• 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: Scripting Graphic Converter batch droplet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting Graphic Converter batch droplet


  • Subject: Re: Scripting Graphic Converter batch droplet
  • From: Shane Stanley <email@hidden>
  • Date: Wed, 18 Apr 2001 08:05:14 +1000

On 18/4/01 6:19 AM +1000, T.J. Mahaffey, email@hidden, wrote:

> 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

You're not opening the file (or saving/closing it when you finish). Try
this:

on open fileList
tell application "GraphicConverter"
repeat with thisFile in fileList
open (thisFile as text) -- GC seems to insist on plain paths
set resolution of window 1 to {72, 72}
close window 1 saving yes
end repeat
end tell
end open

--
Shane Stanley, email@hidden


References: 
 >Scripting Graphic Converter batch droplet (From: "T.J. Mahaffey" <email@hidden>)

  • Prev by Date: RE: Scripting Graphic Converter batch droplet
  • Next by Date: troubleshooting OSA menu scripts
  • Previous by thread: Scripting Graphic Converter batch droplet
  • Next by thread: Re: Scripting Graphic Converter batch droplet
  • Index(es):
    • Date
    • Thread