• 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: GraphicConverter: save in alias, alias ignored
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GraphicConverter: save in alias, alias ignored


  • Subject: Re: GraphicConverter: save in alias, alias ignored
  • From: Walter Ian Kaye <email@hidden>
  • Date: Tue, 2 Mar 2004 09:41:35 -0800

At 11:58a -0500 03/02/2004, Gary Lists didst inscribe upon an electronic papyrus:

Paul Berkowitz wrote [3/2/04 10:55 AM]:

> Have you tried saving it in the [text] file path you want? (Just text, not
> file or alias.) Same thing?

That's the ticket, I think. Last week, when I made that thumbnailer script
posted here, I found that the dictionary is flat wrong regarding 'file
reference'. It _only_ worked for me with text paths.

Confirmed here.


And if you can get 'scale' to work, please tell us how!

What part of 'scale' doesn't work for you? I have not tested the algorithm integers; I'm assuming that they correspond to the items in the pop-up menu starting with 1, so I just used 1. ::shrug::

Here's the guts of the script. It takes a 1600x1200 photo image, and creates 800x600 and 160x120 versions from it.

tell application "GraphicConverter"
tell window 1
if valid then
set ifile to its file
set iname to its name
--stuff here to create the desired output filepaths,
--where fp_m is for medium size and fp_s is for thumbnail size.
scale horizontal 0.5 vertical 0.5 algorithm 1
save it in fp_m as JPEG with makeCopy and wwwready
revert
scale horizontal 0.1 vertical 0.1 algorithm 1
save it in fp_s as JPEG with makeCopy and wwwready
close without saving
else
display dialog "You must first open a *.jpeg file."
end if
end tell
end tell
beep


-boo
_______________________________________________
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: 
 >Re: GraphicConverter: save in alias, alias ignored (From: Gary Lists <email@hidden>)

  • Prev by Date: Re: GraphicConverter: save in alias, alias ignored
  • Next by Date: Re: GraphicConverter: save in alias, alias ignored
  • Previous by thread: Re: GraphicConverter: save in alias, alias ignored
  • Next by thread: Re: GraphicConverter: save in alias, alias ignored
  • Index(es):
    • Date
    • Thread