09. Open Bookmarks
This document explains how to open multiple URLs with 1 action.

Original Article(Japanese)


(Action)
1. AppleScript
To open URL, AppleScript is recommended. To open URLs in separate windows, use following script. To add new URL just copy any line and change URL.
open location "http://homepage.mac.com/nsekine/SYW/software/english" open location "http://wakabamac.blog95.fc2.com/" open location "OtherURL1" open location "OtherURL2"





To open in multiple tabs, the script should be like this.
property URLList : {"http://homepage.mac.com/nsekine/SYW/software/english", "http://wakabamac.blog95.fc2.com/", "OtherURL1", "OtherURL2"} tell application "Safari" if (count of documents) is 0 then make new document end if tell window 1 repeat with anURL in URLList set aTab to make new tab set URL of aTab to anURL end repeat end tell end tell



This action can be run via Task3 status item on menu bar. Also can be run with hot key.
(Trigger)
1. Hot key (Optional)




The function of hot key can be limited with any condition. For example following condition limits the hot key only if Safari is active.
(Condition)
1. Application (Optional)
Set "Safari" and choose "is active". Then the hot key doesn't function when other application is active.


 

To Top and Map