text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
make document | Numbers to Pages (Generic).applescript |
tell document 1 | Numbers to Pages (Generic).applescript |
repeat with i from 1 to count of rowsToProcess | Numbers to Pages (Generic).applescript |
if not (exists page i) then | Numbers to Pages (Generic).applescript |
make page | Numbers to Pages (Generic).applescript |
tell page i | Numbers to Pages (Generic).applescript |
make table with properties {row count:count of labels, column count:2} | Numbers to Pages (Generic).applescript |
tell column 1 | Numbers to Pages (Generic).applescript |
repeat with j from 1 to count of labels | Numbers to Pages (Generic).applescript |
set value of cell j to item j of labels | Numbers to Pages (Generic).applescript |
tell column 2 | Numbers to Pages (Generic).applescript |
set value of cell j to item j of item i of rowsToProcess | Numbers to Pages (Generic).applescript |
to addr(l) | Numbers to Pages (Generic).applescript |
script foo | Numbers to Pages (Generic).applescript |
property foo2 : l | Numbers to Pages (Generic).applescript |
property okAddresses : {} | Numbers to Pages (Generic).applescript |
repeat with i from 1 to count (foo's foo2) | Numbers to Pages (Generic).applescript |
set x to ((foo's foo2)'s item i) | Numbers to Pages (Generic).applescript |
if x is in foo's okAddresses then | Numbers to Pages (Generic).applescript |
set end of foo's okAddresses to x | Numbers to Pages (Generic).applescript |
foo's okAddresses | Numbers to Pages (Generic).applescript |
end addr | Numbers to Pages (Generic).applescript |
set theSourceFolder to choose folder with prompt "Please select the folder containing HEIC/HEIF files" | ConvertHEICtoJPEG.scpt |
set theOutputFolder to choose folder with prompt "Please select an output folder" | ConvertHEICtoJPEG.scpt |
set theFiles to the files of theSourceFolder | ConvertHEICtoJPEG.scpt |
repeat with currentFile in theFiles | ConvertHEICtoJPEG.scpt |
if name extension of currentFile is in {"HEIC", "HEIF"} then | ConvertHEICtoJPEG.scpt |
set extension hidden of currentFile to true | ConvertHEICtoJPEG.scpt |
set theName to displayed name of currentFile | ConvertHEICtoJPEG.scpt |
tell application "Image Events" | ConvertHEICtoJPEG.scpt |
launch | ConvertHEICtoJPEG.scpt |
set theImage to open currentFile as string | ConvertHEICtoJPEG.scpt |
save theImage as JPEG in (theOutputFolder & theName & ".jpg" as string) | ConvertHEICtoJPEG.scpt |
close theImage | ConvertHEICtoJPEG.scpt |
set ConvertedFiles to do shell script "ls " & (POSIX path of theOutputFolder) & " | grep 'jpg' " | ConvertHEICtoJPEG.scpt |
display dialog "The file(s):" & return & return & ConvertedFiles & return & return & "saved in: " & POSIX path of theOutputFolder buttons {"Close"} default button 1 | ConvertHEICtoJPEG.scpt |
tell application "GrowlHelperApp" | swivel_this.applescript |
set the allNotificationsList to {"Debug"} | swivel_this.applescript |
set the enabledNotificationsList to {"Debug"} | swivel_this.applescript |
register as application ¬ | swivel_this.applescript |
"AppleScript Growl" all notifications allNotificationsList ¬ | swivel_this.applescript |
default notifications enabledNotificationsList ¬ | swivel_this.applescript |
icon of application "Script Editor" | swivel_this.applescript |
set debug to false | swivel_this.applescript |
set myText to "" | swivel_this.applescript |
set alreadyOpen to false | swivel_this.applescript |
repeat with processValue in processes | swivel_this.applescript |
if ((file of processValue) as string) contains "Swivel This" then | swivel_this.applescript |
set alreadyOpen to true | swivel_this.applescript |
set myText to myText & " | swivel_this.applescript |
" & (name of processValue) & "=" & (file of processValue) | swivel_this.applescript |
if not alreadyOpen then | swivel_this.applescript |
tell application "/Applications/Swivel This!.app" to activate | swivel_this.applescript |
if debug then | swivel_this.applescript |
notify with name ¬ | swivel_this.applescript |
"Debug" title ¬ | swivel_this.applescript |
"Swivel This" description ¬ | swivel_this.applescript |
"looped: " & myText application name "AppleScript Growl" | swivel_this.applescript |
"Campfire already running!" application name "AppleScript Growl" | swivel_this.applescript |
tell application "System Events" to set isITunesRun to (name of processes) contains "iTunes" | Eject iPhone.applescript |
if not isITunesRun then | Eject iPhone.applescript |
run | Eject iPhone.applescript |
delay 10 | Eject iPhone.applescript |
repeat with sourceItem in sources | Eject iPhone.applescript |
if kind of sourceItem is iPod | Eject iPhone.applescript |
eject sourceItem | Eject iPhone.applescript |
set userThresh to -100 -- Match this value to your workspace settings. Workspace Settings > Audio > Volume Limits > Min | Which cues use output x?.applescript |
set theList to {} | Which cues use output x?.applescript |
set theOut to (display dialog "Which cue output?" default answer "1" buttons {"Cancel", "Go"} default button "Go") | Which cues use output x?.applescript |
if button returned of theOut is "Go" and text returned of theOut is not "" then | Which cues use output x?.applescript |
set theOut to (text returned of theOut as integer) | Which cues use output x?.applescript |
if q type of eachCue is in {"Audio", "Fade", "Mic"} and ((getLevel eachCue row 0 column theOut) > userThresh) then | Which cues use output x?.applescript |
set end of theList to eachCue | Which cues use output x?.applescript |
set selected to theList | Which cues use output x?.applescript |
display alert ((length of theList as string) & " of " & (length of theSelection as string) & " cues were found and selected") | Which cues use output x?.applescript |
property baseURL : "http://statusboard.dev/song?" | spotify copy 2.applescript |
if application "Spotify" is running then | spotify copy 2.applescript |
tell application "Spotify" | spotify copy 2.applescript |
set theTrack to name of the current track | spotify copy 2.applescript |
set theArtist to artist of the current track | spotify copy 2.applescript |
set theAlbum to album of the current track | spotify copy 2.applescript |
set theurl to spotify url of the current track | spotify copy 2.applescript |
do shell script "/usr/local/bin/wget --delete-after \"" & baseURL & "&t=" & theTrack & "&a=" & theArtist & "&al=" & theAlbum & "\"" | spotify copy 2.applescript |
on error err | spotify copy 2.applescript |
set ArtworkFromSpotify to ((path to home folder) as text) & ¬ | spotify copy 2.applescript |
"Sites:statusboard:public:images:albumArt1.tiff" as alias | spotify copy 2.applescript |
set SpotifyArtwork to ((path to home folder) as text) & ¬ | spotify copy 2.applescript |
"Sites:statusboard:public:images:albumArt1.tiff" | spotify copy 2.applescript |
set DefaultArtwork to ((path to home folder) as text) & ¬ | spotify copy 2.applescript |
"Sites:statusboard:public:images:albumArt.tiff" | spotify copy 2.applescript |
set displayArtwork to ((path to home folder) as text) & ¬ | spotify copy 2.applescript |
set unixSpotifyArtwork to the quoted form of POSIX path of SpotifyArtwork | spotify copy 2.applescript |
set unixDefaultArtwork to the quoted form of POSIX path of DefaultArtwork | spotify copy 2.applescript |
set unixDisplayArtwork to the quoted form of POSIX path of displayArtwork | spotify copy 2.applescript |
set whichArt to "blank" | spotify copy 2.applescript |
if exists process "Spotify" then -- Spotify is running | spotify copy 2.applescript |
if player state is playing then -- Spotify is playing | spotify copy 2.applescript |
set aTrack to current track | spotify copy 2.applescript |
set aTrackArtwork to null | spotify copy 2.applescript |
set aTrackArtwork to artwork of aTrack | spotify copy 2.applescript |
Subsets and Splits