• 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: Finder Tell Blocks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finder Tell Blocks


  • Subject: Re: Finder Tell Blocks
  • From: Sander Tekelenburg <email@hidden>
  • Date: Wed, 6 Mar 2002 02:57:32 +0100

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

At 23:13 +0000 UTC, on 05-03-2002, Nigel Garvey wrote:

[...]

>>on 5/3/02 3:01 AM, Sander Tekelenburg at email@hidden wrote:

[...]

>>> This notation does work for me:
>>> display dialog ((name of every process of application "Finder") as
>>> string) contains "MACS"
>
> This isn't just an inversion of Andy's line. [...]

True. All I aimed to do was write a one-liner that achieved the same task.
(Of course I failed miserably ;) See below.)

> What they do have in common is that neither compiles for me. Nor would I
> expect them to. 'Name of every process' is a Finder reference and should
> require a 'tell' block to provide a context for the compiler. I can't
> think why one should actually work for Andy and the other for Sander.

Woops. My bad. I had AkuaSweets fool me.

Sorry, I should've known better.


For those of us who have a hard time following this: the possibilities of
AppleScript can be extended through third-party Scripting Additions[*] (some
favour to call them "osaxen"). Such 'extensions' can be very nice of course,
but the side-effect is that as a scripter you risk losing awareness of when
you're using 'plain vanilla' AppleScript, and when you're making use of a
third-party Scripting Addition.

We often fall into this trap in this list. I'd say at least about once a week
someone posts a snippet here that works for him, yet turns out to not work
for others. And then it turns out that the original poster had a third-party
Scripting Addition installed, which explains why the snippet worked for him,
but not for (most) others. I guess this week it was my turn to make this
mistake ;) The offending third-party Scripting Addition was "AkuaSweets".

It's a bit like saying you scan photo's on your Mac, without mentioning that
you can't do that with the plain vanilla Mac you got from Apple - you first
need to install some specific stuff to do that with.


[*] Many can be found at <http://www.osaxen.com>


-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBPIV3iOsywKfXgqKdEQJXDQCcCUQfCT3F+yazNor1fskot1tBHpAAn1uk
OgUXTl375f6Vf2LY4Co0wLTD
=PxMQ
-----END PGP SIGNATURE-----
--
Sander Tekelenburg, <http://www.euronet.nl/~tekelenb/>
_______________________________________________
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.

References: 
 >Re: Finder Tell Blocks (From: Nigel Garvey <email@hidden>)

  • Prev by Date: Booleans in AS
  • Next by Date: Re: Frame in Quark
  • Previous by thread: Re: Finder Tell Blocks
  • Next by thread: Re: Finder Tell Blocks
  • Index(es):
    • Date
    • Thread