text
stringlengths
0
15.7k
source
stringlengths
6
112
end createAlbum
sort_media.applescript
return (count of (selection as alias list))
km_count_finder_items.applescript
display dialog e
iterm2_alfred_custom_script.scpt
set tmp_dir to "/tmp/"
iterm2_alfred_custom_script.scpt
set applescript_alfred_file to tmp_dir & "alfredscript"
iterm2_alfred_custom_script.scpt
set alfred_file to POSIX path of applescript_alfred_file
iterm2_alfred_custom_script.scpt
write_to_file(q & return, applescript_alfred_file, false)
iterm2_alfred_custom_script.scpt
do shell script "touch ~/Library/Application' Support/iTerm2/quiet'"
iterm2_alfred_custom_script.scpt
set theScript to "tell application \"iTerm\"
iterm2_alfred_custom_script.scpt
if (exists current window) then
iterm2_alfred_custom_script.scpt
tell current window to create tab with default profile
iterm2_alfred_custom_script.scpt
write contents of file \"" & alfred_file & "\"
iterm2_alfred_custom_script.scpt
run script theScript
iterm2_alfred_custom_script.scpt
set tempFile to tempFolder & fName & ".csv"
Save as CSV.applescript
save as active sheet filename tempFile file format CSV file format with overwrite
Save as CSV.applescript
do shell script "/opt/local/bin/flip -u " & quoted form of tempFile
Save as CSV.applescript
tell (make new document with properties {template name:"Blank"})
Script 24-1.applescript
set paragraph 1 to "Pages Version 4 Features"
Script 24-1.applescript
tell body text to insert page break
Script 24-1.applescript
set paragraph 2 to "Full-screen view. When your desktop is cluttered, " & ¬
Script 24-1.applescript
"it can be hard to focus on what you're writing."
Script 24-1.applescript
set paragraph 3 to "Dynamic outlines. It's easier to write when " & ¬
Script 24-1.applescript
"your ideas are structured."
Script 24-1.applescript
set paragraph 4 to "Mail merge with Numbers. Now it's even easier " & ¬
Script 24-1.applescript
"to address invitations, create invoices, personalize letters, " & ¬
Script 24-1.applescript
"and build mailing lists."
Script 24-1.applescript
set paragraph 5 to "Enhanced Template Chooser. Find inspiration for " & ¬
Script 24-1.applescript
"your writing or design project even faster."
Script 24-1.applescript
set paragraph 6 to "More ways to share. Share your Pages documents " & ¬
Script 24-1.applescript
"with anyone on a Mac or PC."
Script 24-1.applescript
on growl(title, message)
growl-notification.applescript
do shell script ("now=$(date +'%H:%M:%S'); /usr/local/bin/growlnotify --appIcon '/Applications/BlueSense.app' --name BlueSense --noteName '" & title & "' -s --message \"$now " & message & "\"")
growl-notification.applescript
growl("Device Detected", "BlueSense detected the device !")
growl-notification.applescript
tell application id "com.adobe.illustrator"
Script 5-12.applescript
delete every text frame of document 1 whose contents = ""
Script 5-12.applescript
display alert "Silencing System Startup" message "Your system audio is about to be disabled. Next startup should be silent." buttons {"Continue"} default button "Continue"
alert.applescript
set thePath to quoted form of theFile's POSIX path
Open File Directory in Terminal.applescript
set value of slider 1 of tab group 1 of window 1 of process "System Preferences" to 0.25
dis25.applescript
log formatSize(10)
formatSize.applescript
log formatSize(1423)
formatSize.applescript
log formatSize(1234245)
formatSize.applescript
log formatSize(1.666E+9)
formatSize.applescript
log formatSize(1.336E+12)
formatSize.applescript
log formatSize(1.426E+15)
formatSize.applescript
on formatSize(n)
formatSize.applescript
if n < 1000 then
formatSize.applescript
return (n as text) & " B"
formatSize.applescript
else if n < 1000000 then
formatSize.applescript
set n to n / 1000
formatSize.applescript
set s to "KB"
formatSize.applescript
else if n < 1.0E+9 then
formatSize.applescript
set n to n / 1000000
formatSize.applescript
set s to "MB"
formatSize.applescript
else if n < 1.0E+12 then
formatSize.applescript
set n to n / 1.0E+9
formatSize.applescript
set s to "GB"
formatSize.applescript
else if n < 1.0E+15 then
formatSize.applescript
set n to n / 1.0E+12
formatSize.applescript
set s to "TB"
formatSize.applescript
set n to n / 1.0E+15
formatSize.applescript
set s to "EB"
formatSize.applescript
return t & " " & s
formatSize.applescript
end formatSize
formatSize.applescript
property ScriptName : "openFileMakerDatabase_TEST"
openFileMakerDatabase.applescript
openFileMakerDatabase({mainDbName:"a00_TIMESSQUARE", dbName:"WUSHOP", serverIP:"192.168.254.6", customLinkReceiverScriptName:"ReceiveSomeLink_DO_NOT_RENAME"})
openFileMakerDatabase.applescript
set customURL to "htclink://AccessFile?FileName=" & dbName of prefs & "&Command=Open&SilentOpen=1&ShowWindow=1"
openFileMakerDatabase.applescript
set fmpURL to "FMP://" & serverIP of prefs & "/" & mainDbName of prefs & "?script=" & customLinkReceiverScriptName of prefs & "&param=" & encodeTextForURL(customURL, true, false)
openFileMakerDatabase.applescript
set fmpURL to replaceSimple({fmpURL, "%3D", "%253D"})
openFileMakerDatabase.applescript
set fmpURL to replaceSimple({fmpURL, "%26", "%2526"})
openFileMakerDatabase.applescript
tell application "System Events" to open location fmpURL
openFileMakerDatabase.applescript
return errMsg --false
openFileMakerDatabase.applescript
tell application "htcLib" to encodeTextForURL(this_text, encode_URL_A, encode_URL_B)
openFileMakerDatabase.applescript
set commit_message to text returned of (display dialog "Commit message: " buttons {"Cancel", "Commit"} with title "Commit All" cancel button "Cancel" default button "Commit" default answer "")
Git Commit All.applescript
do shell script ("cd \"" & current_path & "\"; git commit -am" & quoted form of commit_message)
Git Commit All.applescript
set perspective name to "Forecast"
Open Forecast.applescript
on run {VPNname}
VPNConnect.applescript
set VPNservice to service VPNname -- name of the VPN service
VPNConnect.applescript
if exists VPNservice then
VPNConnect.applescript
set connectionTimeOut to 15
VPNConnect.applescript
set endTime to (current date) + 15
VPNConnect.applescript
set isConnected to false
VPNConnect.applescript
repeat while ((current date) < endTime and not isConnected)
VPNConnect.applescript
if not isConnected then
VPNConnect.applescript
fileChoose({prompt:"Pick some stuff!:", allowMulti:true})
fileChoose.applescript
on fileChoose(prefs)
fileChoose.applescript
set defaultPrefs to {prompt:"Choose files:", allowMulti:false}
fileChoose.applescript
if ((class of prefs) as string is not "record") then
fileChoose.applescript
error "chooseFiles FAILED: parameter should be a record." number 1024
fileChoose.applescript
set choosePrompt to prompt of prefs
fileChoose.applescript
set allowMulti to allowMulti of prefs
fileChoose.applescript
set fileList to (choose file with prompt choosePrompt multiple selections allowed allowMulti)
fileChoose.applescript
if class of fileList is not equal to class of {"a", "b"} then set fileList to {fileList}
fileChoose.applescript
tell application "Finder" to set these_items_Sorted to (sort fileList by name)
fileChoose.applescript
repeat with thisPath in these_items_Sorted
fileChoose.applescript
set fileList to fileList & (thisPath as alias)
fileChoose.applescript
return fileList
fileChoose.applescript
end fileChoose
fileChoose.applescript
set result to text returned of (display dialog "Enter github password:" default answer "" with hidden answer)
commit.APPLESCRIPT
do shell script "cd /Users/nicolas/Google\\ Drive/notes && git add . && git commit -m new_commit && git push https://nkthiebaut:" & result & "@github.com/nkthiebaut/notes.git"
commit.APPLESCRIPT
say "Notes successfully committed and pushed"
commit.APPLESCRIPT