• 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
Newbies Question...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Newbies Question...


  • Subject: Newbies Question...
  • From: sjp <email@hidden>
  • Date: Thu, 21 Feb 2002 11:24:03 -0800

Hey, I'm a newbie to Applescript, and need a little help. I have written
a small script to reset the pop up windows on the desktop, but want to
make it a little better (and versatile).

I have a folder on the desktop called "Tab Folders" In it I put either
the actual folder, or an alias to the desired folder.

I open the Tab Folders folder, and select all.

Then I open all the folders.

Then I set each folders popup to true.

Then I close the Tab Folder folder.

This is ok, but what I'd really like to do is have it so it loops thru
whatever folders and aliases are in the Tab Folder so I can change the
contents of the tab Folder folder without having to rewrite the script
each and every time.

So, How do I get this to loop?

Here's what I have so far:

tell application "Finder"
activate
select folder "Tab Folders "
open selection
select every item of container window of folder "Tab Folders "
open selection
set popup of container window of folder "Aliaii " of folder "Tab
Folders " to true
set popup of container window of folder "Desktop Junk " of folder "Tab
Folders " to true
set popup of container window of folder "Downloads" of folder "Claris
Emailer 2.0v3 " of folder "Applications (Mac OS 9)" of startup disk to
true
set popup of container window of folder "Serial Numbers" of folder "Tab
Folders " to true
select folder "Tab Folders "
open selection
close container window of folder "Tab Folders "
end tell

Thanks,

Stephen
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Run one script from another
  • Next by Date: string literals passwords in run only applications
  • Previous by thread: Re: Run one script from another
  • Next by thread: Re: Newbies Question...
  • Index(es):
    • Date
    • Thread