• 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: Keeping a text-entry in the background, or a work-around
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Keeping a text-entry in the background, or a work-around


  • Subject: Re: Keeping a text-entry in the background, or a work-around
  • From: "J. Stewart" <email@hidden>
  • Date: Thu, 29 Nov 2007 17:47:28 -0500

On 11/29/07 at 12:42 PM, Clint Hoxie <email@hidden> spake thusly:

I'm new on the list, so I apologize if this post doesn't match usual etiquette.

I've copied a script from Alvin Alexander and then modified it a bit. It is intended to open some URLs for me on a repeating basis. I have the script saved as an application bundle which is called as an alarm by iCal. My difficulty is that the script requires a keyboard command to enter the URL, which means that I can't be touching the machine when the script runs, or I likely interfere with its successful execution. I looked for a solution online, but don't have enough experience to know what resources I need. Can anyone help? The script is pasted below.

Thanks.

Clint

-----------------------------------
-- an applescript program that opens a list of urls in separate tabs.
-- opens safari, opens a window, then loads each url in a separate tab.
-- written by alvin alexander, devdaily.com
-- further developed and modified by Clint Hoxie
-- no rights reserved, feel free to copy and improve this program.


If you are using Safari 3, try this instead. Just substitute your URLs (in uList) for the ones I used.

--> Cut <--
set uList to {"http://www.apple.com";, "http://www.versiontracker.com";, "http://www.google.com";, "http://www.macupdate.com"}
tell application "Safari"
set win to (make new document at beginning) -- becomes be window 1
set URL of win to contents of item 1 of uList

tell window 1
repeat with x from 2 to count uList
set curTab to (make new tab at end)
set URL of curTab to contents of item x of uList
end repeat
end tell
end tell
--> Cut <--


JBS
--
You can get more with a simple prayer and a Thompson sub-machinegun than you can with a simple prayer alone.  -John Dillinger
_______________________________________________
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: Keeping a text-entry in the background, or a work-around
      • From: Clint Hoxie <email@hidden>
    • Re: Keeping a text-entry in the background, or a work-around
      • From: Clint Hoxie <email@hidden>
References: 
 >Keeping a text-entry in the background, or a work-around (From: Clint Hoxie <email@hidden>)

  • Prev by Date: How to get entry index of footnote in Word 2004?
  • Next by Date: Re: Mail.app - Can't get contents of email with attachments
  • Previous by thread: Keeping a text-entry in the background, or a work-around
  • Next by thread: Re: Keeping a text-entry in the background, or a work-around
  • Index(es):
    • Date
    • Thread