Re: concat
Re: concat
- Subject: Re: concat
- From: julifos <email@hidden>
- Date: Thu, 12 Jun 2003 10:06:57 +0200
>
Hi,
>
>
The following script fails only at a cold boot. I think that sysID is
>
returned as a series of 2 character strings. To test that theory I
>
wanted to concat sysID. Is that even possible?
>
I can't seem to find concat in any dictionary.
>
>
tell application "Finder"
>
set iMac to false
>
set iBook to false
>
set procs to name of every process
>
set sysID to "" & ((words 2 thru -1 of (do shell script
>
"ifconfig en0 | grep 'ether'")) as string)
>
if sysID is equal to "0003936a9456" then -- iMac ethenet address
>
set iMac to true
>
else if sysID is equal to "000a27ac6ca0" then -- iBook ethenet address
>
set iBook to true
>
end if
>
end tell
>
>
--
>
Bob Poland - Englewood, CO
>
http://www.ibrb.org/
Satimage osax has a command called "special concat", but I think you are not
looking for this...
=====================================================
special concat: concatenate {a_ppty:X,
} and {a_ppty:Y,
} into {a_ppty:Z,
}, where Z is X & Y (resp. X + Y) if X,Y are lists (resp. numbers).
(defined in: Satimage.osax)
special concat record -- the record
with record -- the additional data
Result: record
=====================================================
Concat? Maybe you want this:
"a" & "b" --> "ab"
JJ
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.