FW: Applescript Problem
FW: Applescript Problem
- Subject: FW: Applescript Problem
- From: HD Morgan <email@hidden>
- Date: Mon, 06 May 2002 18:26:01 -0500
I need some help. I want a script which will open a number of selected
temporary partitions (created with Toast), move the open windows to a fixed
location, and set the view to list. I have the script almost figured out,
but I can figure out the repeat mechanism. I know the following script won't
work, what do I need to do to step through theList, open a window for each
item in the list, set the view to name, and move the window to a fixed
location?
tell application "Finder"
activate
set theList to name of every item in selection
set numItems to the number of items in theList
set i to 1
repeat
select disk i of theList
set view of container window of selection to name
set position of container window of selection to {340, 283}
i = i + 1
if i > numItems then exit repeat
end repeat
end tell
====================================================
"Life can only be understood backwards; but it
must be lived forwards." Soren Kierkegaard
====================================================
HD Morgan
email@hidden
====================================================
_______________________________________________
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.