Re: names of a record's items
Re: names of a record's items
- Subject: Re: names of a record's items
- From: Thomas Fischer <email@hidden>
- Date: Thu, 10 Apr 2014 08:49:55 +0200
Am 09.04.2014 um 18:59 schrieb koenig.yvan:
> #[SCRIPT]
> system info
> try
> result as text
> on error errMsg number errNbr
> offset of "{" in errMsg
> set errMsg to text (result + 1) thru -1 of errMsg
> offset of "}" in errMsg
> set errMsg to text 1 thru (result - 1) of errMsg
…
Very ingenious.
Funny how an error message contradicts itself:
"{AppleScript version:\"2.1.2\", …, physical memory:4096} kann nicht in Typ text umgewandelt werden."
Obviously, it *can* be converted to text (at least in some way)!
And we probably all would be quite happy if "get system info as text" would return the string from the error message…
Thanks, Yvan!
Best
Thomas
_______________________________________________
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