Re: Applescript-users Digest, Vol 2, Issue 403
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