• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: copy url rom safari to firefox issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: copy url rom safari to firefox issue
      • From: Christopher Stone <email@hidden>
References: 
 >copy url rom safari to firefox issue (From: DealTek <email@hidden>)

  • Prev by Date: copy url rom safari to firefox issue
  • Next by Date: Re: Excel: hide multiple columns with Applescript
  • Previous by thread: copy url rom safari to firefox issue
  • Next by thread: Re: copy url rom safari to firefox issue
  • Index(es):
    • Date
    • Thread