• 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: Any way in applescript to use an image as a folder icon?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Re: Any way in applescript to use an image as a folder icon? (From: Graff <email@hidden>)

  • Prev by Date: Setting icon programmatically
  • Next by Date: Scripting a mail Appliance
  • Previous by thread: Re: Any way in applescript to use an image as a folder icon?
  • Next by thread: Re: Any way in applescript to use an image as a folder icon?
  • Index(es):
    • Date
    • Thread