How to copy the icon of a selected item
How to copy the icon of a selected item
- Subject: How to copy the icon of a selected item
- From: Barry Fass-Holmes <email@hidden>
- Date: Thu, 26 Jan 2012 15:37:00 +0000
- Date: Thu, 26 Jan 2012 06:29:28 -0800
Hello,
set newIcon to selection as alias tell application "Finder" activate set infoWindow to open information window of newIcon set infoWindowName to name of infoWindow end tell
tell application "System Events" tell application process "Finder" tell window infoWindowName keystroke tab delay 1 keystroke "c" using command down close infoWindow end tell end tell end tell
The error is as follows.
error "Can’t make insertion point after character 386 of text of document \"Copy icon of selected item.scpt\" into type alias." number -1700 from insertion point after character 386 of text of document "Copy icon of selected item.scpt" to alias
How should the set selection command be written instead of "as alias?"
Could someone please explain/teach me how come "as alias" is improper in the above script but works in the script at the referenced Mac OS X Hints page? I don't understand.
Many thanks in advance!
Barry
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden