• 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: What's wrong with the following script ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What's wrong with the following script ?


  • Subject: Re: What's wrong with the following script ?
  • From: Malcolm Fitzgerald <email@hidden>
  • Date: Mon, 26 Jun 2006 10:24:41 +1000


On 26/06/2006, at 7:57 AM, Andrew Oliver wrote:


On Jun 25, 2006, at 9:05 AM, Emile Schwarz wrote:

The script have been created while the Script Editor records the Finder actions. Mac OS X 10.4.6

What's wrong with the following script ?
...

What's wrong with it?

It's ugly. It's perfectly useless. Will only work in cases where you have at least 6 Finder windows open when you run it (otherwise it will throw an error). It's completely inflexible, oh, and assuming what it does is what you want, it be done with just two lines of code.


Andrew, your script doesn't bring the fourth window to the front! ;-)


tell application "Finder" close {Finder window 1, Finder window 2} set bounds of Finder window 4 to {0, 44, 601, 394} select Finder window 4 --> bring window to front end tell

malcolm

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >What's wrong with the following script ? (From: Emile Schwarz <email@hidden>)
 >Re: What's wrong with the following script ? (From: Andrew Oliver <email@hidden>)

  • Prev by Date: Using AppleScript to drop a PDF file on a droplet.
  • Next by Date: Re: Using AppleScript to drop a PDF file on a droplet.
  • Previous by thread: Re: What's wrong with the following script ?
  • Next by thread: Using AppleScript to drop a PDF file on a droplet.
  • Index(es):
    • Date
    • Thread