• 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: Now is: Finder tell block
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Now is: Finder tell block


  • Subject: Re: Now is: Finder tell block
  • From: JollyRoger <email@hidden>
  • Date: Sun, 03 Mar 2002 12:02:45 -0600

On 3/3/2002 11:31 AM, "Sander Tekelenburg" <email@hidden> wrote:

> tell application "Finder"
> -- do something
> end tell

I think it is important to note that you don't *have* to use a tell block.

You can do this instead:

tell application "Finder" to do something

In a lot of cases it's actually better to do it this way, because a lot of
the time you are using more than just Finder commands inside of the tell
block. If you send non-Finder commands to the Finder, in most cases the
Finder will pass the non-Finder commands on to the system/scripting
additions without interfering. There are two potential problems though:

1) Because you send commands through the Finder, if the Finder is busy or
just happens to be running slowly for some reason (which happens more often
than you would think), your script will run more slowly as a result.

2) The Finder has been known to interfere with non-Finder commands in some
cases; and this kind of problem is usually very hard to diagnose.

So learn to avoid tell blocks whenever possible, and try to use them
judiciously, or you may find yourself scratching your head a lot. ;)
_______________________________________________
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.

  • Follow-Ups:
    • Re: Now is: Finder tell block
      • From: Sander Tekelenburg <email@hidden>
    • Re: Now is: Finder tell block
      • From: Mr Tea <email@hidden>
References: 
 >Re: Now is: Finder tell block (From: Sander Tekelenburg <email@hidden>)

  • Prev by Date: Re: Now is: Finder tell block
  • Next by Date: Re: Damn send button / Wind chill
  • Previous by thread: Re: Now is: Finder tell block
  • Next by thread: Re: Now is: Finder tell block
  • Index(es):
    • Date
    • Thread