Re: Any way in applescript to use an image as a folder icon?
Re: Any way in applescript to use an image as a folder icon?
- Subject: Re: Any way in applescript to use an image as a folder icon?
- From: Martin Orpen <email@hidden>
- Date: Sat, 05 Jun 2004 08:27:38 +0100
on 4/6/04 3:38 am, Graff at email@hidden wrote:
>
This is one thing that has stumped most of us. I believe the current
>
consensus is that there is no way to do this with plain-vanilla
>
AppleScript. Maybe you can find a scripting addition or application
>
that will help you to do it but this is a common question and I have
>
yet to see a good answer for it.
I had a crack at using "get info" to do this, but couldn't properly select
the folder icon :-(
I can click it, but it doesn't work in the same way that a real click does:
set myFolder to choose folder
tell application "Finder" to open information window of myFolder
tell application "System Events"
tell application process "Finder"
try
set myButton to button "image" of UI element 6 of UI element 5
of window 1
click myButton
key code 9 using {command down}
end try
end tell
end tell
The folder icon blinks but won't stay highlighted.
Anybody got any suggestions?
--
Martin Orpen
Idea Digital Imaging Ltd -- The Image Specialists
http://www.idea-digital.com
_______________________________________________
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.