• 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: email@hidden
  • Date: Mon, 26 Jun 2006 11:04:28 +1100


Harsh, man harsh....  <8-{

I'm guessing Emile is very new to AppleScript and is looking for newby-like assistance.

Perhaps constructive questions like, "For what purpose are you running this script and what error were you getting?" are more in order.

Cheers,

Coj



Andrew Oliver <email@hidden>
Sent by: applescript-users-bounces+brett.conlon=email@hidden

26/06/06 07:57 AM

To
email@hidden
cc
email@hidden
Subject
Re: What's wrong with the following script ?






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.

tell application "Finder"
                close {Finder window 1, Finder window 2}
        set bounds of Finder window 1 to {0, 44, 601, 394}
end tell

Recorded scripts are rarely useful, especially those recorded by the  
Finder. They're usually too literal to be useful as-is after they're  
recorded and require substantial editing to make them worthwhile, as  
can be seen by the 78% of cruft in your example.

Andrew
:)


 _______________________________________________
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

  • Follow-Ups:
    • Re: What's wrong with the following script ?
      • From: Andrew Oliver <email@hidden>
References: 
 >Re: What's wrong with the following script ? (From: Andrew Oliver <email@hidden>)

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