• 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: me and my do not refer to your script's class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: me and my do not refer to your script's class


  • Subject: Re: me and my do not refer to your script's class
  • From: Dave <email@hidden>
  • Date: Tue, 28 Dec 2010 12:55:28 -0600

On Dec 25, 2010, at 9:03 PM, Alex Zavatone wrote:

> I have found (and correct me if I am wrong) that you can't count on a log statement to properly create a string.
>
> Try creating a variable before and then logging that variable.
>
> Like so:
> set myString to current application's class "Test2AppDelegate" as string
> log myString

Back in the old pre-OS X days there were times I had to cast to string to get the log statement to work and yet in other cases doing so would create a casting error. Shane points out in his new PDF book that the Mac OS X Applescript log command internally uses NSLog(@"%@") which handles all object types. I can't remember if I've ever had to use the old type change idiom on Mac OS X, unless it was to intentionally see an item in a different form, of course. _______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: me and my do not refer to your script's class (From: Shane Stanley <email@hidden>)
 >Re: me and my do not refer to your script's class (From: Dave <email@hidden>)
 >Re: me and my do not refer to your script's class (From: Alex Zavatone <email@hidden>)

  • Prev by Date: Re: Can't invoke NSApplication's terminate
  • Next by Date: Re: me and my do not refer to your script's class
  • Previous by thread: Re: me and my do not refer to your script's class
  • Next by thread: Re: me and my do not refer to your script's class
  • Index(es):
    • Date
    • Thread