Skip to content

No documentation on how to pass variable to applescript file #12

@glennflanagan

Description

@glennflanagan

Passing variables as noted at the bottom of the ReadMe doesn't seem to work but I'm not sure if I'm doing it wrong.

This is my code.

applescript.execFile( 'AppleScripts/setvolume.scpt', ['set spotVolume to 10'],  function(err, data, body) {  

        console.log(data);
        console.log(data);
        console.log(body);

});

And I get back

osascript: set spotVolume to 10: No such file or directory

Am I doing this right?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions