FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister   ProfileProfile    Log inLog in   RSS Feed

Open a webpage

 
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Mac
View previous topic :: View next topic  
Author Message
Iceman
Newbie


Joined: 14 Aug 2007
Posts: 10

PostPosted: Mon Nov 05, 2007 6:38 pm    Post subject: Open a webpage Reply with quote

How would I create a script to open Safari and go to a specific URL?

I played around with a few ways, and I was able to make it work in the Script Editor, but when I ran the script thru Salling Clicker remote, it would open Safari, but would not to to the web page I entered!
Back to top
View user's profile Send private message
salling
Site Admin


Joined: 27 Jul 2004
Posts: 7498
Location: Stockholm, Sweden

PostPosted: Tue Nov 06, 2007 12:33 am    Post subject: Re: Open a webpage Reply with quote

Iceman,

Would you be able to post the script you wrote here?

Best.
--
Jonas

[quote="Iceman"]How would I create a script to open Safari and go to a specific URL?

I played around with a few ways, and I was able to make it work in the Script Editor, but when I ran the script thru Salling Clicker remote, it would open Safari, but would not to to the web page I entered![/quote]
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Iceman
Newbie


Joined: 14 Aug 2007
Posts: 10

PostPosted: Wed Nov 07, 2007 12:02 am    Post subject: Reply with quote

Here is the script


[quote]set aWindowIsOpen to false
tell application "Safari"
repeat with thisWindow in windows
if (not miniaturized of thisWindow) then
set aWindowIsOpen to true
end if
end repeat

if (aWindowIsOpen) then
activate
else
make new document with properties {URL:"http://www.google.com"}
end if
end tell[/quote]
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Mac All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group