Re: "create icon" command in GraphicConverter
Re: "create icon" command in GraphicConverter
- Subject: Re: "create icon" command in GraphicConverter
- From: Jan Pieter Kunst <email@hidden>
- Date: Fri, 08 Jun 2001 18:51:24 +0200
Marc K. Myers (email@hidden) schreef op 08-06-2001 16:56 :
>
> From: Michelle Steiner <email@hidden>
>
>
> tell application "Finder"
>
> set the selectedFile to item 1 of the selection as alias
>
> end tell
>
> tell application "GraphicConverter"
>
> create icon the selectedFile with preview and sharpen
>
> end tell
>
>
I tried to test this approach and it appeared to complete normally, but
>
no custom icon was created. I expanded on it like this:
>
>
set theFile to (choose file) as text
>
tell application "GraphicConverter"
>
create icon theFile with preview and sharpen
>
quit
>
end tell
>
tell application "Finder"
>
activate
>
update container window of the desktop
>
end tell
>
>
Everything ran to completion, but still no custom icon.
>
>
Mac OS 9.1, AS 1.6, GraphicConverter 4.0.4
Michelle's code worked for me. OS 9.1, AppleScript 1.5.5, Graphicconverter
4.0.5.
JP