• 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: names of a record's items
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: names of a record's items (From: "koenig.yvan" <email@hidden>)
 >Re: names of a record's items (From: "koenig.yvan" <email@hidden>)

  • Prev by Date: Re: names of a record's items
  • Next by Date: Re: Recent Items
  • Previous by thread: Re: names of a record's items
  • Next by thread: Re: names of a record's items
  • Index(es):
    • Date
    • Thread