[edit] – It’s true!, hooray! This is a very good thing, and hopefully more labels will open-up their catalogues. Apparently un-DRM’ed albums will not have any price increase, but single tracks will.
Here’s another AppleScript: This one puts an xHTML template on the clipboard: Again, remove the Growl parts if you don’t use Growl.
set XHTMLTemplate to "< !DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"
\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
"
set the clipboard to the XHTMLTemplate
tell application "GrowlHelperApp"
-- notify title "AppleScript Notification" description (noteText as string) icon of application "Script Editor.app"
set myAllNotesList to {"XHTMLTemplateToClipboard"}
register as application "XHTML Template to Clipboard" all notifications myAllNotesList default notifications {"XHTMLTemplateToClipboard"} icon of application "Finder.app"
notify with name "XHTMLTemplateToClipboard" title "XHTML Template 2 Clipboard" description "The XHTML Template has been put on the clipboard" application name "XHTML Template to Clipboard"
end tell"
I never remember to post these scripts which I write and often use onto the web, so that Google can index them.
So in an attempt to solve that, here we go: Here’s an AppleScript that I use often via QuickSilver. It calls Growl so – if you don’t have Growl, remove the growl parts otherwise AppleScript will ask you where GrowlHelperApp is.
set theIP to do shell script "ifconfig | grep 'broadcast' | awk '{print $2}'"
set the clipboard to theIP
tell application "GrowlHelperApp"
set defaultNotification to "Put IP address on Clipboard"
set myAllNotesList to {defaultNotification}
register as application defaultNotification all notifications myAllNotesList default notifications {defaultNotification} icon of application "Finder.app"
notify with name defaultNotification title defaultNotification description "Your IP Address (" & theIP & ") has been put on the clipboard" application name defaultNotification
end tell