UniAce
01-13-2006, 04:49 PM
I want to make an applescript that launches/activates Safari, makes a new window, goes to a URL in the window, and then closes the window WHEN the window reaches a certain other URL.
So far I have:
tell application "Safari"
launch
make new document at the beginning of documents
set the URL of the front document to "http://INITIALWEBPAGE/"
end tell
I just have to figure out how to get it to close the window when it gets to a second, specified webpage (because the user will be surfing through some stuff that will eventually take him/her there). Thanks!
So far I have:
tell application "Safari"
launch
make new document at the beginning of documents
set the URL of the front document to "http://INITIALWEBPAGE/"
end tell
I just have to figure out how to get it to close the window when it gets to a second, specified webpage (because the user will be surfing through some stuff that will eventually take him/her there). Thanks!