Re: Getting url variables without a browser
Re: Getting url variables without a browser
- Subject: Re: Getting url variables without a browser
- From: Emmanuel <email@hidden>
- Date: Thu, 3 Feb 2005 15:48:14 +0100
At 9:41 AM +0000 2/3/05, Lee Noble wrote:
tell application "System Events"
set theOldClipboard to the clipboard
tell process "Firefox"
tell window 1
-- select the address bar
keystroke "l" using command down
-- copy url to the clipboard
keystroke "c" using command down
delay 3
end tell
I don't like having to use all that flaky UIScript so if there is a
way to avoid it can someone let me know.
I'm not replying to the whole question but, regarding that part above
I would use Safari, and write something like:
tell app "Safari" to set theURL to URL of document 1
Is Safari an option for you?
This being said, you may have to call a bit of javascript to make
sure the URL is completely loaded, otherwise I'm not sure what Safari
will return to you.
Emmanuel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden