• 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: concat
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: creating temp files??
  • Next by Date: Sending postscript file to printer
  • Previous by thread: Re: concat
  • Next by thread: Re: Resurgence in AppleScript interest (Ron Bishop)
  • Index(es):
    • Date
    • Thread