• 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: Arrays in AppleScript ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Arrays in AppleScript ?


  • Subject: Re: Arrays in AppleScript ?
  • From: Jon Pugh <email@hidden>
  • Date: Wed, 28 Dec 2005 16:59:34 -0800

At 2:39 PM -0800 12/28/05, Paul Berkowitz wrote:
>Jon means that an application's developers can, and would need to, enable
>such a coercion - a specific coercion for specific concatenations - for it
>to happen.

No, I was saying that the Apple Event Manager can coerce any descriptor into a list descriptor with the previous descriptor in it.  This may need to be done explicitly via AppleScript if some applications don't provide a list.

In other words, this should always work:

	set oneThing to oneThing as list

Your concern about applications blocking this (via a '****' to 'obj ' coercion handler) may mean that you need to do this outside the application's tell block, but it should be possible even with application objects.

Jon
 _______________________________________________
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: Arrays in AppleScript ?
      • From: Paul Berkowitz <email@hidden>
References: 
 >Re: Arrays in AppleScript ? (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Mail 1.0, 2.0 etc.
  • Next by Date: Re: Arrays in AppleScript ?
  • Previous by thread: Re: Arrays in AppleScript ?
  • Next by thread: Re: Arrays in AppleScript ?
  • Index(es):
    • Date
    • Thread