text
stringlengths
0
15.7k
source
stringlengths
6
112
set track_artist to (artist of current track)
autoHijackSpotify.scpt
set track_album to (album of current track)
autoHijackSpotify.scpt
set track_artwork to (artwork of current track)
autoHijackSpotify.scpt
set track_number to (track number of current track)
autoHijackSpotify.scpt
set track_album_artist to (album artist of current track)
autoHijackSpotify.scpt
repeat until player state is not playing
autoHijackSpotify.scpt
if track_name is not equal to (name of current track) then
autoHijackSpotify.scpt
my update_artwork(track_album, track_artwork, folder_path)
autoHijackSpotify.scpt
split recording
autoHijackSpotify.scpt
delay write_delay
autoHijackSpotify.scpt
my update_filename(track_counter - 1, track_artist, track_name, track_album, track_number, folder_path)
autoHijackSpotify.scpt
delay check_delay
autoHijackSpotify.scpt
delay stop_delay
autoHijackSpotify.scpt
stop recording theSession
autoHijackSpotify.scpt
stop hijacking theSession
autoHijackSpotify.scpt
on update_filename(track_counter, track_artist, track_name, track_album, track_number, folder_path)
autoHijackSpotify.scpt
set old_file to ("\"" & folder_path & track_counter & file_extension & "\"")
autoHijackSpotify.scpt
set new_file to (replace_chars(track_artist, "\"", "") & " - " & replace_chars(track_name, "\"", "") & file_extension & "\"")
autoHijackSpotify.scpt
set temp_final_file to replace_chars(new_file, "/", "-")
autoHijackSpotify.scpt
set final_file to ("\"" & folder_path & temp_final_file)
autoHijackSpotify.scpt
do shell script ("mv " & old_file & " " & final_file)
autoHijackSpotify.scpt
end update_filename
autoHijackSpotify.scpt
on update_artwork(track_album, track_artwork, folder_path)
autoHijackSpotify.scpt
set newPath to ((folder_path as text) & (my replace_chars(track_album, ":", "_")) & ".tiff") as text
autoHijackSpotify.scpt
set fileRef to (open for access newPath with write permission)
autoHijackSpotify.scpt
write track_artwork to fileRef starting at 0
autoHijackSpotify.scpt
tell me to close access fileRef
autoHijackSpotify.scpt
log n
autoHijackSpotify.scpt
log m
autoHijackSpotify.scpt
return newPath
autoHijackSpotify.scpt
end update_artwork
autoHijackSpotify.scpt
on getSession()
autoHijackSpotify.scpt
set sessionName to "Spotify"
autoHijackSpotify.scpt
set theSession to (first item of (every session whose name is sessionName))
autoHijackSpotify.scpt
theSession is not null
autoHijackSpotify.scpt
set theSession to (make new application session at end of sessions)
autoHijackSpotify.scpt
set name of theSession to sessionName
autoHijackSpotify.scpt
return theSession
autoHijackSpotify.scpt
end getSession
autoHijackSpotify.scpt
say_hello(name of home) of me
Script 11-16.applescript
set the clipboard to (get name of (get window 1))
cur doc link copy.scpt
set array to current application's NSArray's arrayWithArray:{}
file9.txt
if (current view of front Finder window) is icon view then
Show icon preview.applescript
set (shows icon preview of icon view options of front Finder window) to (not shows icon preview of icon view options of front Finder window)
Show icon preview.applescript
else if (current view of front Finder window) is list view or (current view of front Finder window) is flow view then
Show icon preview.applescript
set (shows icon preview of list view options of front Finder window) to (not shows icon preview of list view options of front Finder window)
Show icon preview.applescript
else if (current view of front Finder window) is column view then
Show icon preview.applescript
set (shows icon preview of column view options of front Finder window) to (not shows icon preview of column view options of front Finder window)
Show icon preview.applescript
if (shows icon preview of column view options of front Finder window) then set (shows icon of column view options of front Finder window) to true
Show icon preview.applescript
set theName to "可以溜了"
index.applescript
set endTime to (current date) + 9 * 60 * 60
index.applescript
make new reminder with properties {name:theName, creation date:startTime, remind me date:endTime}
index.applescript
set endTimeH to get hours of endTime
index.applescript
set endTimeM to get minutes of endTime
index.applescript
set outPutTime to endTimeH & ":" & endTimeM as string
index.applescript
return outPutTime
index.applescript
set position of window "Override Controls" of process "QLab" to {(desktopX - theORWidth), (desktopY - theORHeight)}
Show Overrides, Position Bottom Right.applescript
set workspaceBounds to {0, 0, (desktopX - theORWidth), desktopY}
Show Overrides, Position Bottom Right.applescript
set addr to "https://www.youtube.com/"
SelectOrOpen_youtube.applescript
set APPLESCRIPTS_FOLDER to "~/Desktop/important/SystemFiles"
afterBTTLaunched.applescript
set_number_variable "steviaOS" to 1.0 # let apps (eg: DockAltTab) know you're using steventheworker's applescripts/BTT triggers
afterBTTLaunched.applescript
set_string_variable "steviaOSSystemFiles" to APPLESCRIPTS_FOLDER
afterBTTLaunched.applescript
set_string_variable "ffCloseOrder" to "" # firefox-cmd-shift-t.applescript helper
afterBTTLaunched.applescript
on show_mail_sbrs(subjectLine, messageText, myrecipients)
Mail.applescript
set mymail to (make new outgoing message at the beginning of outgoing messages with properties {subject:subjectLine, content:messageText})
Mail.applescript
repeat with i from (count of myrecipients) to 1 by -1
Mail.applescript
tell mymail to make new to recipient at beginning of to recipients with properties {address:(item i of myrecipients)}
Mail.applescript
set visible of mymail to true
Mail.applescript
end show_mail_sbrs
Mail.applescript
on show_mail_sbr(subjectLine, messageText, myrecipient, myrecipientname)
Mail.applescript
tell mymail to make new to recipient at beginning of to recipients with properties {address:myrecipient, name:myrecipientname}
Mail.applescript
end show_mail_sbr
Mail.applescript
on send_mail_sb(subjectLine, messageText)
Mail.applescript
end send_mail_sb
Mail.applescript
on send_mail_sbr(subjectLine, messageText, myrecipient, myrecipientname)
Mail.applescript
send mymail
Mail.applescript
end send_mail_sbr
Mail.applescript
on send_mail_sbrp(subjectLine, messageText, myrecipient, myrecipientname, invitationPath)
Mail.applescript
set pfile to POSIX file invitationPath
Mail.applescript
set myfile to pfile as alias
Mail.applescript
tell mymail
Mail.applescript
make new attachment with properties {file name:myfile} at after the last word of the the last paragraph
Mail.applescript
end send_mail_sbrp
Mail.applescript
on send_mail_sbp(subjectLine, messageText, invitationPath)
Mail.applescript
end send_mail_sbp
Mail.applescript
set slideshow_content to "Presentation name: " & (name of slideshow 1) & space
Script 24-8.applescript
repeat with i from 1 to count slides
Script 24-8.applescript
set slideshow_content to slideshow_content & (title of slide i) & space
Script 24-8.applescript
set slideshow_content to slideshow_content & (body of slide i) & space
Script 24-8.applescript
set slideshow_content to slideshow_content & (notes of slide i) & space
Script 24-8.applescript
set file_path to POSIX path of (choose file name with prompt "Save the presentation's content as:" default name "My Presentation.m4a")
Script 24-8.applescript
if file_path does not end with ".m4a" then set file_path to file_path & ".m4a"
Script 24-8.applescript
do shell script "say -o" & space & quoted form of file_path & space & quoted form of slideshow_content
Script 24-8.applescript
set unprocessedMessages to (get every message of mailbox "Unprocessed Receipts" whose read status is false)
mail_receipt_process_lyft.applescript
set testsender to "[email protected]"
mail_receipt_process_lyft.applescript
set sender1 to "Lyft Ride Receipt"
mail_receipt_process_lyft.applescript
set testreceiver to "[email protected]"
mail_receipt_process_lyft.applescript
set receiver to "[email protected]"
mail_receipt_process_lyft.applescript
set cardmatch1 to "9336"
mail_receipt_process_lyft.applescript
set cardcounter to false
mail_receipt_process_lyft.applescript