text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
set {active_scene, s2_exists} to getMaschineScenes()
|
launchpad-for-maschine.applescript
|
if (item 1 of message = 176) and (item 2 of message = item 5 of ctrlButtons) and (item 3 of message is 0) then
|
launchpad-for-maschine.applescript
|
set session_pad to false
|
launchpad-for-maschine.applescript
|
if (item 1 of message = 176) and (item 2 of message = item 6 of ctrlButtons) and (item 3 of message = 127) then
|
launchpad-for-maschine.applescript
|
set drums_pad to true
|
launchpad-for-maschine.applescript
|
if (item 1 of message = 176) and (item 2 of message = item 6 of ctrlButtons) and (item 3 of message = 0) then
|
launchpad-for-maschine.applescript
|
set drums_pad to false
|
launchpad-for-maschine.applescript
|
if (item 1 of message = 176) and (item 2 of message = item 7 of ctrlButtons) and (item 3 of message = 127) then
|
launchpad-for-maschine.applescript
|
if keys_pad is false then
|
launchpad-for-maschine.applescript
|
set keys_pad to true
|
launchpad-for-maschine.applescript
|
set keys_pad to false
|
launchpad-for-maschine.applescript
|
if (item 1 of message = 176) and (item 2 of message = item 7 of ctrlButtons) and (item 3 of message = 0) then
|
launchpad-for-maschine.applescript
|
set message to {} # ignore off message - the keys pad is a toggle button that toggles state on the midi on message
|
launchpad-for-maschine.applescript
|
if (item 1 of message = 176) and (item 2 of message = item 8 of ctrlButtons) and (item 3 of message = 127) then
|
launchpad-for-maschine.applescript
|
set user_pad to true
|
launchpad-for-maschine.applescript
|
if (item 1 of message = 176) and (item 2 of message = item 8 of ctrlButtons) and (item 3 of message = 0) then
|
launchpad-for-maschine.applescript
|
set user_pad to false
|
launchpad-for-maschine.applescript
|
if (item 1 of message = 144) and (item 3 of message > 0) then
|
launchpad-for-maschine.applescript
|
set {padx, pady} to getLPpadXY(item 2 of message)
|
launchpad-for-maschine.applescript
|
set message to {}
|
launchpad-for-maschine.applescript
|
set oldLPcolor to item padx of item pady of mas_pattern_colors
|
launchpad-for-maschine.applescript
|
set oldIntensity to getLPintensity(oldLPcolor)
|
launchpad-for-maschine.applescript
|
if keys_pad and user_pad is false and oldIntensity is not active then
|
launchpad-for-maschine.applescript
|
if sinceLastTime(true) > 500 then switchScene(0) # 500 milliseconds
|
launchpad-for-maschine.applescript
|
set is_new_pattern to clickMaschinePattern(padx, pady)
|
launchpad-for-maschine.applescript
|
if oldIntensity = inactive then
|
launchpad-for-maschine.applescript
|
set message to message & setLPcolor(padx, pady, setLPintensity(oldLPcolor, active))
|
launchpad-for-maschine.applescript
|
set oldLPcolor to item padx of item iy of mas_pattern_colors
|
launchpad-for-maschine.applescript
|
if (oldLPcolor is not 0) and (iy is not pady) then
|
launchpad-for-maschine.applescript
|
set message to message & setLPcolor(padx, iy, setLPintensity(oldLPcolor, inactive))
|
launchpad-for-maschine.applescript
|
if is_new_pattern then
|
launchpad-for-maschine.applescript
|
set masColors to getMaschinePatternColors(1, 1, padx - 1, pady - 1)
|
launchpad-for-maschine.applescript
|
set rgb to item 1 of item 1 of masColors
|
launchpad-for-maschine.applescript
|
set message to message & setLPcolor(padx, pady, rgbToLPcolor(item 1 of rgb, item 2 of rgb, item 3 of rgb))
|
launchpad-for-maschine.applescript
|
if (item 1 of message = 144) and (item 3 of message = 0) then
|
launchpad-for-maschine.applescript
|
if (item 1 of message = 176) and ((item 2 of message) mod 10 = 9) and (item 3 of message = 127) then
|
launchpad-for-maschine.applescript
|
set pady to 9 - ((item 2 of message) div 10)
|
launchpad-for-maschine.applescript
|
if keys_pad then
|
launchpad-for-maschine.applescript
|
if sinceLastTime(true) > 500 then switchScene(pady) # 500 milliseconds
|
launchpad-for-maschine.applescript
|
clickMaschineRow(pady)
|
launchpad-for-maschine.applescript
|
set theText to characters of "abc23er55"
|
count_characters.applescript
|
repeat with i from 1 to count of items in theText
|
count_characters.applescript
|
set x to item i of theText
|
count_characters.applescript
|
if x is in "1234567890" then
|
count_characters.applescript
|
set Y to Y + 1
|
count_characters.applescript
|
display dialog Y
|
count_characters.applescript
|
set opn to 0
|
Create New File.applescript
|
set fn to "new.txt"
|
Create New File.applescript
|
set answer to text returned of (display dialog "Filename to create:" default answer fn)
|
Create New File.applescript
|
if answer is "/" then
|
Create New File.applescript
|
set opn to 1
|
Create New File.applescript
|
else if character -1 of answer is "/" then
|
Create New File.applescript
|
set fn to text 1 thru -2 of answer
|
Create New File.applescript
|
set fn to answer
|
Create New File.applescript
|
if character -1 of answer is "." then
|
Create New File.applescript
|
set fn to answer & "txt"
|
Create New File.applescript
|
set p to target of window 1
|
Create New File.applescript
|
set p to desktop as alias
|
Create New File.applescript
|
set f to make new file at p with properties {name:fn}
|
Create New File.applescript
|
set selection to f
|
Create New File.applescript
|
if opn is 1 then
|
Create New File.applescript
|
open f using (path to application "BBEdit")
|
Create New File.applescript
|
set currentValue to dark mode
|
darkmode-switch.applescript
|
if currentValue is false then
|
darkmode-switch.applescript
|
set properties to {dark mode:true}
|
darkmode-switch.applescript
|
else if currentValue is true then
|
darkmode-switch.applescript
|
set properties to {dark mode:false}
|
darkmode-switch.applescript
|
stringToMonthConstant("Dec")
|
stringToMonthConstant.applescript
|
stringToMonthConstant("Mar")
|
stringToMonthConstant.applescript
|
on stringToMonthConstant(str)
|
stringToMonthConstant.applescript
|
set shortMonthNames to {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"}
|
stringToMonthConstant.applescript
|
set longMonthNames to {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"}
|
stringToMonthConstant.applescript
|
if str is in shortMonthNames or str is in longMonthNames then
|
stringToMonthConstant.applescript
|
repeat with monthNumber from 1 to 12
|
stringToMonthConstant.applescript
|
if str is (item monthNumber of shortMonthNames) or str is (item monthNumber of longMonthNames) then
|
stringToMonthConstant.applescript
|
return month of theDate
|
stringToMonthConstant.applescript
|
end stringToMonthConstant
|
stringToMonthConstant.applescript
|
set output_folder to (choose folder with prompt "Please choose an output directory")
|
autoHijackSpotify.scpt
|
set folder_path to POSIX path of output_folder
|
autoHijackSpotify.scpt
|
property file_extension : ".mp3"
|
autoHijackSpotify.scpt
|
set track_counter to 1
|
autoHijackSpotify.scpt
|
if player state is playing then pause
|
autoHijackSpotify.scpt
|
set track_name_x to (name of current track)
|
autoHijackSpotify.scpt
|
set track_artist_x to (artist of current track)
|
autoHijackSpotify.scpt
|
set track_album_x to (album of current track)
|
autoHijackSpotify.scpt
|
set track_artwork_x to (artwork of current track)
|
autoHijackSpotify.scpt
|
set track_album_artist_x to (album artist of current track)
|
autoHijackSpotify.scpt
|
set theSession to my getSession()
|
autoHijackSpotify.scpt
|
set output folder to output_folder
|
autoHijackSpotify.scpt
|
set output name format to "%tag_comment"
|
autoHijackSpotify.scpt
|
set comment tag to track_counter
|
autoHijackSpotify.scpt
|
set title tag to track_name_x
|
autoHijackSpotify.scpt
|
set artist tag to track_artist_x
|
autoHijackSpotify.scpt
|
set album tag to track_album_x
|
autoHijackSpotify.scpt
|
set album artist tag to track_album_artist_x
|
autoHijackSpotify.scpt
|
if hijacked of theSession is false then start hijacking theSession
|
autoHijackSpotify.scpt
|
start recording theSession
|
autoHijackSpotify.scpt
|
set track_counter to (track_counter + 1)
|
autoHijackSpotify.scpt
|
set sound volume to 100
|
autoHijackSpotify.scpt
|
set track_name to (name of current track)
|
autoHijackSpotify.scpt
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.