Re: Newbies Question...
Re: Newbies Question...
- Subject: Re: Newbies Question...
- From: sjp <email@hidden>
- Date: Thu, 21 Feb 2002 13:57:58 -0800
Hey that works pretty good, but I'm having a problem with it reolving
aliases.
I modified it as follows:
tell application "Finder"
activate
select folder "Tab Folders "
open selection
select every item of container window of folder "Tab Folders "
open selection
set allFolders to every item of folder "Tab Folders "
repeat with kfolder in allFolders
set popup of container window of kfolder to true
end repeat
set the pulled open of front window to false
select folder "Tab Folders "
open selection
close container window of folder "Tab Folders "
end tell
I changed the repeat loop from "folders" to "Items" to get it to open all
items, I may need to add a second loop or if statement to have it
properly handle aliases.
Any comments would be appreciated!
I am in digest mode, so don't be afraid to "Double Tap" your replies!
TIA,
Stephen
On 2/21/02 12:45 PM, Deivy Petrescu wrote:
>
>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:
>
>
I am sorry if I am giving to much, but here:
>
>
tell application "Finder"
>
activate
>
set allFolders to every folder of folder "full path to
>
folder" -- put your folder here
>
repeat with kfolder in allFolders
>
open kfolder
>
if not the popup of container window of kfolder then
>
set popup of container window of kfolder to true
>
end repeat
>
set the pulled open of front window to false
>
end tell
>
--
>
Deivy Petrescu
>
http://www.dicas.com
>
Tips for Mac
>
dicas para Mac
_______________________________________________
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.