• 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: "koenig.yvan" <email@hidden>
  • Date: Thu, 10 Apr 2014 19:09:57 +0200


Le 10/04/2014 à 17:23, Alex Zavatone <email@hidden> a écrit :

Jesus.  I never thought I'd say this, but it makes sense to clear the log, log the system info to a window, capture and parse the string.

So much easier than actually attempting to get the data from the API.

Wonder if there is an [object description] method in Objective-C that will simply output this as a string.




So you are back to my scheme:


#[SCRIPT]
my decipherArecord(system info)

#=====
#
on decipherArecord(aRecord)
try
aRecord as text
on error errMsg number errNbr
offset of "{" in errMsg
set errMsg to text (result as integer) thru -1 of errMsg
offset of "}" in (reverse of characters of errMsg) as text
set errMsg to text 1 thru -(result) of errMsg
# Now we are free to decipher the text as we want
return errMsg
end try
end decipherArecord


Yvan KOENIG (VALLAURIS, France) jeudi 10 avril 2014 19:09:52


 _______________________________________________
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

  • Follow-Ups:
    • Re: names of a record's items
      • From: Alex Zavatone <email@hidden>
    • Re: names of a record's items
      • From: Alex Zavatone <email@hidden>
References: 
 >Re: names of a record's items (From: Luther Fuller <email@hidden>)
 >Re: names of a record's items (From: Alex Zavatone <email@hidden>)
 >Re: names of a record's items (From: Luther Fuller <email@hidden>)
 >Re: names of a record's items (From: Shane Stanley <email@hidden>)
 >Re: names of a record's items (From: 2551phil <email@hidden>)
 >Re: names of a record's items (From: Shane Stanley <email@hidden>)
 >Re: names of a record's items (From: Shane Stanley <email@hidden>)
 >Re: names of a record's items (From: Alex Zavatone <email@hidden>)

  • Prev by Date: Re: names of a record's items
  • Next by Date: Re: names of a record's 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