PDA

View Full Version : Applescript Request




50thVert
Dec 4, 2005, 11:32 PM
Hey every1,
I am not very proficient in coding, and if someone would make me a short applescript id be much obliged.

What i would like it to do is open up the web browser application Shiira and have it display the following webpages:

http://forums.bimmerforums.com/forum...play.php?f=121
http://www.cigarpass.com/forums/

Reason i want it is so that i can have Automator run this applescript in the middle of my morning workflow. Automator does not have an option to pass selected URLs to any browser other than Safari.

Many thanks to whomever can assist me!
-Zach



mduser63
Dec 5, 2005, 01:16 AM
Your first link leads to a 404 page, so replace that URL in this code with a correct link. Anyway, the code below works, but it opens each page in its own window. I couldn't find any way to open a new tab in Shiira via AppleScript. You should copy this code into Script Editor and save it from there.

tell application "Shiira"
make new document
set URL of document 1 to "http://www.cigarpass.com/forums/"
make new document
set URL of document 1 to "http://forums.bimmerforums.com/forum...play.php?f=121"
end tell

50thVert
Dec 5, 2005, 06:19 PM
Thanks mduser63, works flawlessly! :D

-Zach