• 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: Applescript-users Digest, Vol 2, Issue 403
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applescript-users Digest, Vol 2, Issue 403


  • Subject: Re: Applescript-users Digest, Vol 2, Issue 403
  • From: CYB <email@hidden>
  • Date: Fri, 17 Jun 2005 17:21:37 -0500

Title: Re: Applescript-users Digest, Vol 2, Issue 403
This script works ok in 10.4.1 so I think you just need to store the result to use it latter.

tell
application "System Profiler"
    set SN to system profile
   last word of (paragraph (count paragraphs in (text 1 thru (offset of "Serial Number" in SN) of SN)) of SN)
   set SerialNumb to result --for example
end tell

And then set the content of the appropriate text field to this variable.


From: <email@hidden>
Reply-To: <email@hidden>
Date: Fri, 17 Jun 2005 11:27:00 -0700 (PDT)
To: <email@hidden>
Subject: Applescript-users Digest, Vol 2, Issue 403

The applescript I used for retrieving the sn was from another thread:

tell application "System Profiler"
    set SN to system profile
   last word of (paragraph (count paragraphs in (text 1 thru (offset of "Serial Number" in SN) of SN)) of SN)
end tell

It returns the serial just fine on it’s own. How do I put the result into a variable that I can paste into the info field?
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: This AppleScript stuff is harder than I thought
  • Next by Date: Re: One for the experts: Serial Number of computer using Applescript Studio
  • Previous by thread: Re: One for the experts: Serial Number of computer using Applescript Studio
  • Next by thread: Why is copying a file so hard?
  • Index(es):
    • Date
    • Thread