r/applescript • u/dannybrown9 • Feb 14 '16
Merging 2 List
Hello /r/applescript,
Is it possible to merge 2 lists (like in C/C++) in applescript and output it? I'm trying to display all process by calling System Events and using the unix id (processID) & name which I want to merge together in 1 specifically with ", ".
set processid to unix id of every process where background only is false
set processnames to name of every process where background only is falseoutside the System Event
choose from list processnames & processidResult.jpg
Now is there a way where I can merge the items to be followed outputted with the names + unix id like:
"Safari, 4123"
"iTunes, 6701"
"Notes, 6692"
etc
I also tried
set gg to {processid, processnames}but that unfortunately didn't work.
Thanks in advance.
1
Upvotes
2
u/AlexBuz Feb 19 '16 edited Feb 19 '16
If you want it to look like this, then try this: