Re: copy url rom safari to firefox issue
Re: copy url rom safari to firefox issue
- Subject: Re: copy url rom safari to firefox issue
- From: DealTek <email@hidden>
- Date: Sun, 20 Mar 2011 10:57:34 -0700
I did just find this - and it works.... but I'm still curious how to fix the first one however...
----------
tell application "Safari"
set thisPage to do JavaScript "document.URL" in document 1
end tell
do shell script "open -a Firefox " & thisPage
---------
On Mar 20, 2011, at 10:43 AM, DealTek wrote:
> Hi Folks,
>
> I'm trying to copy a url from safari to firefox. The script below errors with a 'Can't get URL....' on the line
>
> get URL my_URL
>
> Q Any ideas how to fix this?
>
>
>
> ----------------------
>
> tell application "Safari"
> activate
> set my_URL to the URL in document 1
> end tell
>
> --Convert Unicode Text of my_URL to Plain text
> set my_URL to «class ktxt» of ((my_URL as string) as record)
>
> tell application "Firefox"
> activate
> get URL my_URL
> end tell
>
> --
> Thanks,
> Dave - DealTek
> email@hidden
> [db-11]
>
>
>
--
Thanks,
Dave - DealTek
email@hidden
[db-11]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden