• 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: Use of "return"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Use of "return"


  • Subject: Re: Use of "return"
  • From: Christopher Stone <email@hidden>
  • Date: Wed, 18 Dec 2013 17:17:10 -0600

On Dec 18, 2013, at 16:56, Steve Bird <email@hidden> wrote:
set afterText to (theBidList of thisAuction as text) & return
return

There's no ambiguity there.

I agree - that’s the way it was shown in ASE. 
Yet it fails to execute the statement following it, and returns to the caller.
______________________________________________________________________

Hey Steve,

I'd say you just introduced some ambiguity.  :)

But you're talking about another bit of code in another message aren't you?

on test(_text)
set x to "WTH " & _text & return
set x to x & return
return x
end test

test("is this vexing problem?")

This snippet works fine.

I suggest you restart the Applescript Editor and try again.

I also suggest you enclose your errant return with parenthesis:

set afterText to ((theBidList of thisAuction as text) & return)

You could also try adding an explicit get just for fun.

set afterText to ((theBidList of thisAuction as text) & (get return))

If it's still screwing up then I suggest you reboot your system.

If no resolution then I suggest you send us a larger (working) snippet of your script to experiment with.

Did you mention which OSX version you're using?

--
Best Regards,
Chris

 _______________________________________________
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/archives/applescript-users

This email sent to email@hidden

References: 
 >Use of "return" (From: Steve Bird <email@hidden>)
 >Re: Use of "return" (From: Shane Stanley <email@hidden>)
 >Re: Use of "return" (From: Steve Bird <email@hidden>)

  • Prev by Date: Re: Use of "return"
  • Next by Date: Re: SmartSet
  • Previous by thread: Re: Use of "return"
  • Next by thread: System Events Keypress Question
  • Index(es):
    • Date
    • Thread