• 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: Why is it?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why is it?


  • Subject: Re: Why is it?
  • From: Emmanuel <email@hidden>
  • Date: Sat, 21 Oct 2006 15:07:28 +0200

At 5:12 PM +0100 10/20/06, Timothy Bates wrote:

Half tongue in cheek,

Maybe applescript needs a new construct "with getting"

Then everything inside a "with getting"-"end getting" pair is coerced.

I tested the new feature OMM:

really get
    tell app "Finder" to set name of f to "newfilename"
end getting
--> error: can't set "oldfilename" to "newfilename"

set aList to {1, 2, 2.5}
really get
    set item 3 of aList to 3
end getting
--> error: can't set 2.5 to 3

set x to "hello world"
really get
    set x to "hi tim"
end getting
--> error: can't set "hello world" to "hi tim"

Not sure I'll be able to use the new feature very soon.

Emmanuel

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden
References: 
 >Re: Why is it? (From: Timothy Bates <email@hidden>)

  • Prev by Date: Re: High performance way to encode HTML entities
  • Next by Date: Re: High performance way to encode HTML entities
  • Previous by thread: Re: Why is it?
  • Next by thread: Re: Why is it?
  • Index(es):
    • Date
    • Thread