node-osascript icon indicating copy to clipboard operation
node-osascript copied to clipboard

how would i pass multiple variables to a file?

Open lholliger opened this issue 8 years ago • 0 comments

i currently have the oascript of

on run {targetBuddyPhone, targetMessage}
    tell application "Messages"
        set targetService to 1st service whose service type = iMessage
        set targetBuddy to buddy targetBuddyPhone of targetService
        send targetMessage to targetBuddy
    end tell
end run

how can i pass the 2 variables of targetBuddyPhone and targetMessage to the file?

lholliger avatar Apr 22 '17 17:04 lholliger