• 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
copy url rom safari to firefox issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

copy url rom safari to firefox issue


  • Subject: copy url rom safari to firefox issue
  • From: DealTek <email@hidden>
  • Date: Sun, 20 Mar 2011 10:43:09 -0700

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]



 _______________________________________________
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: DealTek <email@hidden>
  • Prev by Date: Re: Excel: hide multiple columns with Applescript
  • Next by Date: Re: copy url rom safari to firefox issue
  • Previous by thread: Re: Need collective genius
  • Next by thread: Re: copy url rom safari to firefox issue
  • Index(es):
    • Date
    • Thread