Skip to content

Combine operations in single Applescript command instead of multiple individual commands #25

@jaebradley

Description

@jaebradley

The node-osascript library, which this project depends on, opens and closes stdin for every command.

This can lead to many processes being opened (and closed). Instead, one can combine commands like

osascript -e 'tell application "Spotify"' -e 'set trackId to id of current track' -e 'set trackName to name of current track' -e 'return { trackId, trackName }' -e 'end tell'

which returns

spotify:track:00Ci0EXS4fNPnkTbS6wkOh, Electric Love - Oliver Remix

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions