• 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: Clint Hoxie <email@hidden>
  • Date: Thu, 29 Nov 2007 16:33:04 -0700

This works...almost. What happens is I get a window that opens with a blank tab (my home page is blank) and then fills all the following tabs with items 2 through x on my list.

Any idea why the first URL is not populating the address bar?

Clint

PS - I changed the start marker in the in the repeat line from "2 to count uList" to "1 to count uList", with no change, except an extra empty tab.



On Nov 29, 2007, at 3:47 PM, J. Stewart wrote:

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 (applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users


This email sent to email@hidden

_______________________________________________ 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: "J. Stewart" <email@hidden>
References: 
 >Re: Keeping a text-entry in the background, or a work-around (From: "J. Stewart" <email@hidden>)

  • Prev by Date: Re: Keeping a text-entry in the background, or a work-around
  • Next by Date: Re: Keeping a text-entry in the background, or a work-around
  • Previous by thread: Re: 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