1
0
mirror of https://github.com/Toxblh/MTMR.git synced 2026-01-10 00:58:37 +00:00

Get rid of all references to /Users/x/ in favor of ~

This commit is contained in:
Mark Rickert 2019-11-06 15:03:57 -07:00
parent 5eb2d73c94
commit 1ae2041d0d
3 changed files with 16 additions and 16 deletions

View File

@ -128,7 +128,7 @@ The pre-installed configuration contains less or more than you'll probably want,
"type": "appleScriptTitledButton",
"refreshInterval": 60, //optional
"source": {
"filePath": "/Users/toxblh/Library/Application Support/MTMR/iTunes.nowPlaying.scpt",
"filePath": "~/Library/Application Support/MTMR/iTunes.nowPlaying.scpt",
// or
"inline": "tell application \"Finder\"\rif not (exists window 1) then\rmake new Finder window\rset target of front window to path to home folder as string\rend if\ractivate\rend tell",
// or

View File

@ -14,7 +14,7 @@
{ "type": "appleScriptTitledButton", "source": { "inline": "if application \"iTunes\" is running then\r\ttell application \"iTunes\"\r\t\tif player state is not stopped then return \"\"\r\tend tell\rend if\rif application \"Safari\" is running then\r\ttell application \"Safari\"\r\t\trepeat with t in tabs of windows\r\t\t\ttell t\r\t\t\t\tif URL starts with \"https:\/\/music.yandex.ru\" and name does not end with \"на Яндекс.Музыке\" then\r\t\t\t\t\treturn \"\"\r\t\t\t\tend if\r\t\t\tend tell\r\t\tend repeat\r\tend tell\rend if\rreturn \"▶\"" }, "refreshInterval": 30, "width": 40, "align": "right" },
{ "type": "volume", "width": 100, "align": "right" },
{ "type": "displaySleep", "width": 44, "align": "right" },
{ "type": "appleScriptTitledButton", "refreshInterval": 1800, "source": { "filePath": "/Users/redetection/Library/Application Support/MTMR/Weather.scpt"}, "align": "right" },
{ "type": "appleScriptTitledButton", "refreshInterval": 1800, "source": { "filePath": "~/Library/Application Support/MTMR/Weather.scpt"}, "align": "right" },
{ "type": "timeButton" , "align": "right"},

View File

@ -3,7 +3,7 @@
{
"type": "exitTouchbar",
"image": {
"filePath": "/Users/toxblh/git/selfProjects/MTMR/Resources/logo.png"
"filePath": "~/git/selfProjects/MTMR/Resources/logo.png"
},
"width": 36, "align": "left" },
{ "type": "brightnessDown", "width": 36, "align": "left" },
@ -12,46 +12,46 @@
"type": "appleScriptTitledButton",
"source": {
"filePath":
"/Users/toxblh/git/selfProjects/MTMR/MTMR/AppleScripts/iTunes.nowPlaying.scpt"
"~/git/selfProjects/MTMR/MTMR/AppleScripts/iTunes.nowPlaying.scpt"
},
"action": "appleScript",
"actionAppleScript": {
"filePath": "/Users/toxblh/git/selfProjects/MTMR/MTMR/AppleScripts/iTunes.next.scpt"
"filePath": "~/git/selfProjects/MTMR/MTMR/AppleScripts/iTunes.next.scpt"
},
"refreshInterval": 1,
"image": {
"filePath": "/Users/toxblh/git/selfProjects/btt-touchbar-preset/icons/iTunes.png"
"filePath": "~/git/selfProjects/btt-touchbar-preset/icons/iTunes.png"
}
},
{
"type": "appleScriptTitledButton",
"source": {
"filePath":
"/Users/toxblh/git/selfProjects/MTMR/MTMR/AppleScripts/Spotify.nowPlaying.scpt"
"~/git/selfProjects/MTMR/MTMR/AppleScripts/Spotify.nowPlaying.scpt"
},
"action": "appleScript",
"actionAppleScript": {
"filePath":
"/Users/toxblh/git/selfProjects/MTMR/MTMR/AppleScripts/Spotify.next.scpt"
"~/git/selfProjects/MTMR/MTMR/AppleScripts/Spotify.next.scpt"
},
"refreshInterval": 1,
"image": {
"filePath": "/Users/toxblh/git/selfProjects/btt-touchbar-preset/icons/Spotify.png"
"filePath": "~/git/selfProjects/btt-touchbar-preset/icons/Spotify.png"
}
},
{
"type": "appleScriptTitledButton",
"source": {
"filePath":
"/Users/toxblh/git/selfProjects/MTMR/MTMR/AppleScripts/Vox.nowPlaying.scpt"
"~/git/selfProjects/MTMR/MTMR/AppleScripts/Vox.nowPlaying.scpt"
},
"action": "appleScript",
"actionAppleScript": {
"filePath": "/Users/toxblh/git/selfProjects/MTMR/MTMR/AppleScripts/Vox.next.scpt"
"filePath": "~/git/selfProjects/MTMR/MTMR/AppleScripts/Vox.next.scpt"
},
"refreshInterval": 1,
"image": {
"filePath": "/Users/toxblh/git/selfProjects/btt-touchbar-preset/icons/Vox.png"
"filePath": "~/git/selfProjects/btt-touchbar-preset/icons/Vox.png"
}
},
{