Re: GraphicConverter & saving files in new places
Re: GraphicConverter & saving files in new places
- Subject: Re: GraphicConverter & saving files in new places
- From: "Marc K. Myers" <email@hidden>
- Date: Wed, 13 Nov 2002 14:54:20 -0500
Subject: Re: GraphicConverter & saving files in new places
Date: Wed, 13 Nov 2002 09:48:56 -0600
From: Peter Bunn <email@hidden>
To: "AppleScript Users Mailing List"
<email@hidden>
On Tuesday, Marc K. Myers wrote:
If you supply GraphicConverter's "save" command with a target in the
form
of a string representing a complete path to the desired new file it
will
create a new file of the type you specify in the command. There's no
need
to go through acrobatics to get there. The dictionary is confusing in
that it identifies the target as an alias, which it is not.
-----
Marc:
For the sake of the discussion...
I was working on a thumbnailer droplet for use with GC in OS 8.6. I
broke the script up into a Finder tell block and and a handler for the
GC
actions. The variable for the_thumb is set in the Finder block, which
seemed to work fine in 8.6. But in X, even if I 'remind' GC of the
variable in the handler, GC doesn't 'see' it and saves the thumbnail in
the original - not desirable.
In 8.6 the bare basics look something like this:
--
tell application "Finder"
set the_thumb to ((the desktop) as text) & "Thumbs:" & "Test.jpg"
end tell
tell application "GraphicConverter"
save window 1 in the_thumb as JPEG
end tell
I was unable to reproduce your problem in GraphicConverter 4.5 under
Mac OS X 10.2.1. I pasted the above code into Script Editor, created a
"Thumbs" folder on the desktop, opened a PICT file in GraphicConverter,
and ran the script. It created a "Test.jpg" file in the "Thumbs"
folder. When I checked I found it was indeed a JPEG.
Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074
[11/13/02 2:53:17 PM]
_______________________________________________
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.