• 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
FW: Applescript Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: OS X: Styled text to plain text???
  • Next by Date: Open Source Software[OT]
  • Previous by thread: Batch image analysis and manipulation
  • Next by thread: Open Source Software[OT]
  • Index(es):
    • Date
    • Thread