text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
set fileRef to ¬
|
spotify copy 2.applescript
|
(open for access ArtworkFromSpotify with write permission)
|
spotify copy 2.applescript
|
write aTrackArtwork to fileRef
|
spotify copy 2.applescript
|
close access fileRef
|
spotify copy 2.applescript
|
on error errorMsg
|
spotify copy 2.applescript
|
error errorMsg
|
spotify copy 2.applescript
|
tell application "Finder" to ¬
|
spotify copy 2.applescript
|
set creator type of ArtworkFromSpotify to "????"
|
spotify copy 2.applescript
|
set whichArt to "Spotify"
|
spotify copy 2.applescript
|
if whichArt is "Spotify" then
|
spotify copy 2.applescript
|
do shell script "ditto -rsrc " & unixSpotifyArtwork & space & unixDisplayArtwork
|
spotify copy 2.applescript
|
do shell script "ditto -rsrc " & unixDefaultArtwork & space & unixDisplayArtwork
|
spotify copy 2.applescript
|
on run {input}
|
gistfile1-2 copy 9.applescript
|
tell application "Evernote"
|
gistfile1-2 copy 9.applescript
|
repeat with SelectedFile in input
|
gistfile1-2 copy 9.applescript
|
display dialog "Tags for " & SelectedFile default answer ""
|
gistfile1-2 copy 9.applescript
|
set value to text returned of result
|
gistfile1-2 copy 9.applescript
|
set AppleScript's text item delimiters to ","
|
gistfile1-2 copy 9.applescript
|
set the_tags to text items of value
|
gistfile1-2 copy 9.applescript
|
set the_tags to the_tags & {"file", "paper", "book"}
|
gistfile1-2 copy 9.applescript
|
create note from file SelectedFile notebook "Auto Import" tags the_tags
|
gistfile1-2 copy 9.applescript
|
on error errMessage number errNumber
|
gistfile1-2 copy 9.applescript
|
if the errNumber is equal to 4 then
|
gistfile1-2 copy 9.applescript
|
set userCanceled to false
|
gistfile1-2 copy 9.applescript
|
display dialog "Your Evernote account does not support the import of this type of file. Why not consider upgrading?" buttons {"Cancel", "Go Premium"} default button "Cancel" cancel button "Cancel" with icon caution
|
gistfile1-2 copy 9.applescript
|
on error number -128
|
gistfile1-2 copy 9.applescript
|
set userCanceled to true
|
gistfile1-2 copy 9.applescript
|
if userCanceled is false then
|
gistfile1-2 copy 9.applescript
|
open location "https://www.evernote.com/Checkout.action"
|
gistfile1-2 copy 9.applescript
|
display alert "Import into Evernote failed" message "Error(" & errNumber & "): " & errMessage as warning
|
gistfile1-2 copy 9.applescript
|
repeat 50 times
|
click_screen copy.scpt
|
click at {1073, 373}
|
click_screen copy.scpt
|
set outputfolderpath to (choose folder with prompt "Choose Text Output Folder" without invisibles) as text
|
Export - all stories to xpress tags.applescript
|
tell application "QuarkXPress 2018"
|
Export - all stories to xpress tags.applescript
|
set a to text export filters
|
Export - all stories to xpress tags.applescript
|
set min_length to text returned of (display dialog "Smallest text to export" default answer 3)
|
Export - all stories to xpress tags.applescript
|
repeat with i from 1 to count of documents
|
Export - all stories to xpress tags.applescript
|
set quarkfilename to name of document i
|
Export - all stories to xpress tags.applescript
|
repeat with j from 1 to count of text boxes
|
Export - all stories to xpress tags.applescript
|
set txtbox to object reference of text box j
|
Export - all stories to xpress tags.applescript
|
if (the length of (story 1 of txtbox) > min_length) then save (story 1 of txtbox) as "XPress Tags" in file ((outputfolderpath & (quarkfilename & j & ".xtg")) as text)
|
Export - all stories to xpress tags.applescript
|
set array to current application's NSArray's arrayWithArray:{"blue", "Apple", "cat", "Dog", "あし", "アオ", "あか", "アイ", "アザ"}
|
file2.txt
|
return (array's sortedArrayUsingSelector:"compare:") as list
|
file2.txt
|
tell application "Microsoft Edge"
|
onedrive-search.applescript
|
set theTab to active tab of window 1
|
onedrive-search.applescript
|
title of theTab
|
onedrive-search.applescript
|
execute theTab javascript "document.querySelector(" #ms-searchux-input-0").value"
|
onedrive-search.applescript
|
execute theTab javascript "document.querySelector(" #ms-searchux-input-0").value = 'script editor';"
|
onedrive-search.applescript
|
document.querySelector("#O365_SearchBoxContainer_container > div > form").submit()
|
onedrive-search.applescript
|
do JavaScript "document.querySelector(\"#ms-searchux-input-0\").value = 'solar';" in document 1
|
onedrive-search.applescript
|
do JavaScript "document.querySelector(\"#ms-searchux-input-0\").value;" in document 1
|
onedrive-search.applescript
|
class="submitSearchButton-198 visible-197"
|
onedrive-search.applescript
|
//*[@id="O365_SearchBoxContainer_container"]/div/form/button[3]
|
onedrive-search.applescript
|
document.querySelector("#O365_SearchBoxContainer_container > div > form > button.submitSearchButton-195.visible-194")
|
onedrive-search.applescript
|
on run argv
|
set_daily_task_run.applescript
|
if script = class of argv then
|
set_daily_task_run.applescript
|
set today to current date
|
set_daily_task_run.applescript
|
set today to (item 1 of argv)
|
set_daily_task_run.applescript
|
set day_dd to day of today
|
set_daily_task_run.applescript
|
if day_dd < 10 and day_dd > 0 then
|
set_daily_task_run.applescript
|
set day_dd to ("0" & day_dd)
|
set_daily_task_run.applescript
|
set month_mm to run script (POSIX file "/Users/IceHe/Documents/AppleScript/Lib/month2mm.applescript") with parameters {today}
|
set_daily_task_run.applescript
|
set year_yyyy to year of today
|
set_daily_task_run.applescript
|
set year_yy to (year_yyyy mod 100)
|
set_daily_task_run.applescript
|
set flag to ("Daily_Task/" & year_yy & month_mm & day_dd & "_run_all")
|
set_daily_task_run.applescript
|
return run script (POSIX file "/Users/IceHe/Documents/AppleScript/Lib/set_flag.applescript") with parameters {flag}
|
set_daily_task_run.applescript
|
global appsup, chosenAlias
|
register copy.applescript
|
property homeRootURL : "http://audimate.me/"
|
register copy.applescript
|
on split(someText, delimiter)
|
register copy.applescript
|
set someText to someText's text items
|
register copy.applescript
|
return someText
|
register copy.applescript
|
end split
|
register copy.applescript
|
on getMyDetails()
|
register copy.applescript
|
set myProfileURL to (homeRootURL & "getMyDetails.php") as string
|
register copy.applescript
|
set myProfileData to (do shell script ("curl --data " & quoted form of ("alias=" & chosenAlias) & " -e 'audiMate.getMyDetails' " & quoted form of myProfileURL)) as string
|
register copy.applescript
|
return myProfileData
|
register copy.applescript
|
end getMyDetails
|
register copy.applescript
|
on getMyLocation()
|
register copy.applescript
|
set myProfileData to getMyDetails()
|
register copy.applescript
|
set myLocation_cont to item 2 of (split(myProfileData, "<--userLocation-->")) as string
|
register copy.applescript
|
set (contents of text view 1 of scroll view 1 of window "locationWindow") to myLocation_cont
|
register copy.applescript
|
end getMyLocation
|
register copy.applescript
|
on createMe()
|
register copy.applescript
|
tell window "registerWindow"
|
register copy.applescript
|
set contents of text field "registerErrorText" to ""
|
register copy.applescript
|
set myReg_email to (contents of text field "registerEmailInput") as string
|
register copy.applescript
|
if myReg_email is not "" then
|
register copy.applescript
|
set myReg_alias to (contents of text field "registerAliasInput") as string
|
register copy.applescript
|
if myReg_alias is not "" then
|
register copy.applescript
|
set myReg_password to (contents of text field "registerPasswordInput") as string
|
register copy.applescript
|
if myReg_password is not "" then
|
register copy.applescript
|
set myReg_password_c to (contents of text field "registerPasswordConfirmInput") as string
|
register copy.applescript
|
if myReg_password_c is not "" then
|
register copy.applescript
|
if (myReg_password is not equal to myReg_password_c) then
|
register copy.applescript
|
set contents of text field "registerErrorText" to "Your passwords do not match."
|
register copy.applescript
|
set myReg_gender to (current row of matrix "registerGenderMatrix") as string
|
register copy.applescript
|
if myReg_gender is "1" then
|
register copy.applescript
|
set myReg_gender to "Male"
|
register copy.applescript
|
else if myReg_gender is "2" then
|
register copy.applescript
|
set myReg_gender to "Female"
|
register copy.applescript
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.