Fraser Speirs ([info]fraserspeirs) wrote,
@ 2006-03-18 22:53:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Lifehack Scripting
I've been doing some applescripting recently, and I threw a few new ones up on my wiki.

I recently got the Quicksilver Trigger religion in a big way and my favourite script is this one that launches iSync, syncs my phone and quits iSync. I have this bound to Ctrl-F12 in Quicksilver and it's just great. For me, frequently running iSync just fell over the line into that category of "too disrupting to do often". With the single-keystroke method, though, I find I almost do it unconsciously whenever I take my attention away from the computer.

Also, a couple of scripts there for taking the front tab in Safari or the selected headline in NetNewsWire, archiving and flagging it in Yojimbo. Nice for when you hit an item you want to read in-depth but not immediately, or you're trying to rapidly accumulate research material on a particular topic. I'm often in that second frame of mind when I'm shopping online - if I'm looking at a particular item, I'll probably find it at three or four different sites and stash their item pages in Yojimbo for later detailed evaluation.


(Post a new comment)

cronjob
(Anonymous)
2006-03-19 07:49 am UTC (link)
I had a script like this that used cron to invoke the script via 'osascript' early every morning. I just couldn't be bothered to remember to do it.

Ted Leung

(Reply to this)

Yojimbo applescript question
(Anonymous)
2006-03-20 08:17 pm UTC (link)
Im new to applescript and Im trying to get Yojimbo to import a pdf. I cant find any examples on the web so I was wondering if someone would be kind enough to post a 1 line example for me? Thanks.

(Reply to this)(Thread)

Re: Yojimbo applescript question
[info]fraserspeirs
2006-03-20 08:20 pm UTC (link)
http://www.barebones.com/support/lists/yojimbo_talk.shtml

(Reply to this)(Parent)

An even better iSync solution
(Anonymous)
2006-03-27 04:16 am UTC (link)
I have an even better solution. I use Salling Clicker. I have the following script set to run every time Salling Clicker connects to my phone (which it tries to do every 5 mins).

This script (which I got from somebody else) can be set to sync the phone every X hours.

Salling Clicker has some other nice features (like automatically locking the machine when I walk away) and so on ...


Here's the syncing script.

-- Configuration options
set syncPeriod to 3 * hours

tell application "System Events"
	set iSync_Running to (exists process "iSync")
end tell
tell application "iSync"
	launch
	if not syncing then
		set lastSyncTime to last sync
		if (current date) - lastSyncTime > syncPeriod then
			synchronize
		end if
	end if
	if not iSync_Running then
		repeat while syncing
			delay 1
		end repeat
		quit
	end if
end tell



Cheers,
Wibbly le Moende

(Reply to this)

Quicksilver Noob
[info]synthrabbit
2006-11-17 04:04 am UTC (link)
This script is awesome. Could you help out a Quicksilver noob and tell me where to put the file and add it to Quicksilver? I can't get it to show up anywhere but the system-wide scripts menu.

(Reply to this)


Create an Account
Forgot your login?
Login w/ OpenID
English • Español • Deutsch • Русский…