Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'An easy way to identify specific docked document icons' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
An easy way to identify specific docked document icons
Authored by: Anonymous on Sep 15, '08 04:26:57PM

The paste event should really come before the delay, otherwise it behaves weird.



[ Reply to This | # ]
An easy way to identify specific docked document icons
Authored by: PizzaCake on Sep 16, '08 10:19:12AM

The paste event has to come after the delay because you have to have time to select the icon in the top left of the get info window, then the script pastes the contents of the clipboard as a custom icon for the file. I've just tried the script again and it works fine on my Mac running Leopard. But if the script works better for you your way then that's the way it should run.



[ Reply to This | # ]
An easy way to identify specific docked document icons
Authored by: PizzaCake on Sep 17, '08 01:55:22AM

Hopefully the final version. You don't have to select the icon in the get info window anymore as I found out the tab key does this. Therefore, no delay is required.

tell application "Finder"
activate
tell application "System Events"
keystroke space
do shell script "/usr/sbin/screencapture -ciwoT0 "
keystroke space
keystroke "i" using command down
keystroke tab
keystroke "v" using command down
keystroke "w" using command down
end tell
end tell



[ Reply to This | # ]