Groxx Applescript "contents" vs "content" on a note item
Feb 18, 2010; 08:42
Groxx
Applescript "contents" vs "content" on a note item
I've got a running question on StackOverflow, but Applescript support there is somewhat lacking. If you're on there at all, and / or want a nicer display: http://is.gd/8F0yW
So, a re-post:
In an attempt to export my data, I've been poking around with AppleScript, learning the language, etc, and currently have this: -------------------------------- tell application "Yojimbo" repeat with EachNote in (note items in library) display dialog (content of EachNote) as string end repeat end tell --------------------------------
What's confusing me is that, though the class in the Applescript dictionary defines the property "contents", I have to use "content" to retrieve the contents. Using "contents" results in this error: -------------------------------- Can’t make «class YNot» id "A0C9E19E-3106-44F9-97A6-A1A74AD77948" of application "Yojimbo" into type string. --------------------------------
I'm assuming the "syn content" means it's a synonym, thus I should be able to use "content" and "contents" interchangeably. But apparently the synonym works, but the original does not...?
Also, more simply, why do the contents have to be coerced into a string? If I look at the properties on the object (via: (properties of EachNote) as string ), "contents" is a double-quoted string, though I realize this isn't necessarily "proof" that it's a string.
I'm still starting with AppleScript, so if I'm making a n00bish mistake, feel free to slap.
-- You received this message because you are subscribed to the "Yojimbo Talk" discussion group on Google Groups. To post to this group, send email to yojimbo-talk@googlegroups.com To unsubscribe from this group, send email to yojimbo-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/yojimbo-talk?hl=en If you have a feature request or would like to report a problem, please email "support@barebones.com" rather than posting to the group.
Feb 21
Jim Correia Re: Applescript "contents" vs "content" on a note item
Feb 21, 2010; 06:39
Jim Correia
Re: Applescript "contents" vs "content" on a note item
Feb 22
Groxx Re: Applescript "contents" vs "content" on a note item
Feb 22, 2010; 06:57
Groxx
Re: Applescript "contents" vs "content" on a note item
Feb 22
Jim Correia Re: Applescript "contents" vs "content" on a note item
Feb 22, 2010; 07:05
Jim Correia
Re: Applescript "contents" vs "content" on a note item
Feb 22
Groxx Re: Applescript "contents" vs "content" on a note item
Feb 22, 2010; 09:54
Groxx
Re: Applescript "contents" vs "content" on a note item
Feb 22
Jim Correia Re: Applescript "contents" vs "content" on a note item
Feb 22, 2010; 12:24
Jim Correia
Re: Applescript "contents" vs "content" on a note item
Feb 23
Groxx Re: Applescript "contents" vs "content" on a note item
Feb 23, 2010; 05:39
Groxx
Re: Applescript "contents" vs "content" on a note item
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!