Getting a browser page address

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Philhold
Posts: 64
Joined: Thu Mar 05, 2009 3:39 pm

Post by Philhold » Wed Mar 11, 2009 11:00 pm

I was trying "window 1", "front window" and couldn't get it to work.

Code: Select all

tell application "Safari"
	set myURL to URL of front window
	set myURL to the result
end tell
I wonder when it became "document 1".

I had a similar problem persuading Filemaker Pro 8.5 to import emails using an Applescript that worked fine in Filemaker Pro 6. Oddly it continued to work in the converted .fp7 file until I edited something else in the script.

Cheers

Phil

gyroscope
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 404
Joined: Tue Jan 08, 2008 3:44 pm
Contact:

Post by gyroscope » Wed Mar 11, 2009 11:11 pm

I wonder when it became "document 1".
Perhaps post Rev2.8 or2.9? Still, it works, that's the main thing!

:)

Post Reply