Re: Get a file's icon???
Re: Get a file's icon???
- Subject: Re: Get a file's icon???
- From: Marcus Jarrett <email@hidden>
- Date: Fri, 8 Mar 2002 15:01:03 +1030
On 7/3/02 at 6:27 PM, email@hidden wrote:
Using Akua Sweets, try:
clip ((the icon for theFile) as picture)
HTH,
Marcus
>
> -- Requires Sandi's Additons
>
> on copyIconToClipboard(thisFile)
>
> set thisFile to thisFile as string
>
> tell application "Finder"
>
> activate
>
> set infoWindow to information window of alias thisFile
>
> open infoWindow
>
> TypeText tab
>
> TypeText tab
>
> TypeText "a" with Command
>
> TypeText "c" with Command
>
> close infoWindow
>
> end tell
>
> end copyIconToClipboard
>
>
>
> Victor
>
>
That is great! Finally something that actually works!
>
>
BUT...
>
That active finder statement is not very pleasant. Imagine you are in
>
FileMaker and you click on the button to get a certain file's icon and is
>
flashes between the finder and FileMaker.
>
>
I am pleased that it works but bummed that I am going to have lightning
>
striking on the screen when using it.
--
Marcus Jarrett
Adelaide, South Australia
email@hidden
_______________________________________________
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.