Align heredoc AppleScript strings to osascript calls
This commit is contained in:
9
neofetch
9
neofetch
@@ -1613,7 +1613,8 @@ get_song() {
|
||||
song="$(osascript <<END
|
||||
if application "Spotify" is running then
|
||||
tell application "Spotify"
|
||||
artist of current track as string & " - " & name of current track as string
|
||||
artist of current track as string & \
|
||||
" - " & name of current track as string
|
||||
end tell
|
||||
end if
|
||||
END
|
||||
@@ -1626,7 +1627,8 @@ END
|
||||
song="$(osascript <<END
|
||||
if application "iTunes" is running then
|
||||
tell application "iTunes"
|
||||
artist of current track as string & " - " & name of current track as string
|
||||
artist of current track as string & \
|
||||
" - " & name of current track as string
|
||||
end tell
|
||||
end if
|
||||
END
|
||||
@@ -2001,7 +2003,8 @@ END
|
||||
local current_profile_name profiles_count profile_name diff_font none_ascii
|
||||
|
||||
current_profile_name="$(osascript <<END
|
||||
tell application "iTerm2" to profile name of current session of current window
|
||||
tell application "iTerm2" to profile name \
|
||||
of current session of current window
|
||||
END
|
||||
)"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user