Posts mit dem Label workflow werden angezeigt. Alle Posts anzeigen
Posts mit dem Label workflow werden angezeigt. Alle Posts anzeigen

Samstag, August 23, 2014

show open iCloud Tabs in shell

I've got the idea from this macstories post. In the attached Python script you find not only the location where the OS keeps the information. But also how to access it.

After I had a look at the man page for plutil I started my own test.
plutil -p ~/Library/SyncedPreferences/com.apple.Safari.plist
This will display the informatio in a JSON looking format.
plutil -convert xml1 -o /tmp/iCloudTabs2.xml  ~/Library/SyncedPreferences/com.apple.Safari.plist
Converts the information to XML. Don't miss the -o or it will overwrite the original file. Instead you could also use -e xml to write to a file with the new extension.

The output contains the device, URL, page title and more. If I find some information on the iPad and want to save, I keep the tap open. The next time at the Mac the URL to download this with curl or wget is already there.

Montag, Dezember 08, 2008

burn ISO image on Mac OS X

This is my step by step instruction based on this Mac OS X Hints article and its comments.

on command line:

  • hdiutil burn image.iso



with the GUI:

  1. insert blank disk and select Disk Utility to be opened

  2. cmd-B or press Icon Burn or menu Images - Burn

  3. select the .iso or .dmg image and click Burn

  4. confirm the drive to be used

Samstag, August 23, 2008

Application Launchers

The new blogg post on lifehacker about application launchers got me thinking how I start applications. So far I used "Alt-F2" on KDE and Launchy on Windows. Not to forget the shell. This is my launcher tool number one!

The advantage of a full grown launcher are:

  • even never started application will be found typing only few letters

  • list all possible matches for the letters you typed so far

  • plugins give you actions well beyond starting an application


disadvantages

  • uses quite some memory

  • the shortcut learned needs to be part of the name, e.g. "int" or "exp" for Internet Explorer and not ie as you my prefer


Creating a directory with shortcuts to all the applications I use didn't make any sense to me. I'm in a shell most of the time. Therefor an alias is the best shortcut. I only have a directory with links to get scripts I've wrote into the path. The scripts are located in a directory tree to reflect projects and are part of a VC.

Replacing Launchy on Windows with a directory containing links will not only save memory. The biggest advantage I see is the name of the shortcut. Like with an alias I'm able to use a name that makes sense to me. Like ie for the Internet Explorer. Or even better using the same name on WIndows and Linux - pws for pwsafe (Windows) and MyPasswordSafe (Linux).

And the plugins? The only one I used is the web plugin. All my Firefox shortcuts, like search on google, search on wikipedia, I've also added to Launchy. But thinking about it, most of the time I entered the shortcut directly in a new Firefox Tab.

The next step for me is, instead of starting an application with Launchy, to create an shortcut link to the application. The advantage is that the same shortcut is usable from the shell. So remove an alias if it exists for the application. And I will automatically get a list with applications I use.

Samstag, September 01, 2007

search my blog

Added a firefox shortcut to search my blog with google blog search. At a normal google search the site option limits the search to a web server. In case of the blog search it is called blogurl.

The complete location entry is: http://www.google.com/blogsearch?&num=10&c2coff=1&safe=active&ie=UTF-8&q=%s blogurl:chaotisch.blogspot.com&lr=

Seeing the option num gave me the idea to try this with my normal google search shortcut. Adding num=100 to it worked!