Activate your screen saver from a shell script via osascript:
osascript -e ‘tell application “ScreenSaverEngine” to activate’
Alternatively, if you want to quit the screen saver:
osascript -e ‘tell application “ScreenSaverEngine” to quit’
Productivity, Automation, Scripting and other Mac goodness!
Activate your screen saver from a shell script via osascript:
osascript -e ‘tell application “ScreenSaverEngine” to activate’
Alternatively, if you want to quit the screen saver:
osascript -e ‘tell application “ScreenSaverEngine” to quit’
Using the code below, you can open a new Safari window for a given url (www.google.com).
tell application "Safari"
make new document at beginning of documents
set URL of document 1 to "http://www.google.com"
end tell
Vienna is an excellent rss reader, but it’s not perfect. One of my biggest complaints is it’s lack of a hot key to toggle the display filtering of the articles. There are a variety of methods to assign key combinations to various application and desktop functions, but my preferred method is Quicksilver triggers.
Assign this applescript to a trigger, and you will then be able to use a key combo to cycle thru the 4 filter modes: All Articles, Unread Articles, Last Refresh, and Today. The script cycles thru the 4 modes in order.
tell application "Vienna"
set x to (get filter by)
— set to Unread Articles, if showing All
if (x = 0) then
set filter by to 1
— set to Last Refresh, if showing Unread Articles
else if (x = 1) then
set filter by to 2
— set to Today, if showing Last Refresh
else if (x = 2) then
set filter by to 3
— set to All Articles if showing Today
else if (x = 3) then
set filter by to 0
end if
end tell