text
stringlengths
0
15.7k
source
stringlengths
6
112
set projectPath to configUser's getValue("Project " & computedProjectKey)
Create Voice Command App.applescript
logger's debugf("projectPath: {}", projectPath)
Create Voice Command App.applescript
set resourcePath to textUtil's replace(scriptPosixPath, projectPath & "/", "")
Create Voice Command App.applescript
logger's debugf("resourcePath: {}", resourcePath)
Create Voice Command App.applescript
tell automator
Create Voice Command App.applescript
writeRunScript(computedProjectKey, resourcePath)
Create Voice Command App.applescript
clickCommandEnabled()
Create Voice Command App.applescript
setCommandPhrase(baseScriptName)
Create Voice Command App.applescript
set the clipboard to baseScriptName & " " & emoji's HORN
Create Voice Command App.applescript
if name of automator is "AutomatorInstance" then -- vanilla implementation has problem with programmatically setting the dictation command getting recognized by the Automator app.
Create Voice Command App.applescript
display dialog "User needs to continue the steps manually
Create Voice Command App.applescript
1. Set the Dictation Command by re-typing it.
Create Voice Command App.applescript
2. Save the app by pressing Cmd + S
Create Voice Command App.applescript
3. Paste the generated filename"
Create Voice Command App.applescript
enterScriptName(baseScriptName & " " & emoji's HORN)
Create Voice Command App.applescript
click menu item "Run"
run_xcode.applescript
set theFilePath to quoted form of theFile's POSIX path
Open Document Directory in Terminal.applescript
set thePath to do shell script "dirname " & theFilePath
Open Document Directory in Terminal.applescript
mount volume "smb://kevin/media"
Mount Media on Kevin.applescript
open ("/Volumes/media" as POSIX file)
Mount Media on Kevin.applescript
set fileNames to (get the name of every file of ffolder)
ListFolderContents.applescript
set end of fileNames to name of itemRef
ListFolderContents.applescript
set fileNames to fileNames as Unicode text
ListFolderContents.applescript
write fileNames to fid
ListFolderContents.applescript
fileNames
ListFolderContents.applescript
set theFolder to choose folder with prompt "Pick a folder from which to auto-import the images."
imposition EPS files.applescript
set question to display dialog "Pages" default answer 10
imposition EPS files.applescript
set totalpages to text returned of question
imposition EPS files.applescript
set question to display dialog "Imageboxes on each page" default answer 10
imposition EPS files.applescript
set imageboxes to text returned of question
imposition EPS files.applescript
set question to display dialog "Image base name (without _00X.eps)" default answer "Project 1"
imposition EPS files.applescript
set imagename to text returned of question
imposition EPS files.applescript
repeat with p from 0 to totalpages
imposition EPS files.applescript
repeat with i from 0 to imageboxes
imposition EPS files.applescript
tell picture box (i + 1) of page p of document 1
imposition EPS files.applescript
set tall to ((i * totalpages) + p) as string
imposition EPS files.applescript
set FilePath1 to (theFolder & imagename & "_" & tall & ".eps") as string
imposition EPS files.applescript
set FilePath2 to (theFolder & imagename & "_0" & tall & ".eps") as string
imposition EPS files.applescript
set FilePath3 to (theFolder & imagename & "_00" & tall & ".eps") as string
imposition EPS files.applescript
set image 1 to FilePath1 as alias
imposition EPS files.applescript
set image 1 to FilePath2 as alias
imposition EPS files.applescript
set image 1 to FilePath3 as alias
imposition EPS files.applescript
tell application "BathyScaphe"
gistfile1-2 copy 8.applescript
if class of front document is document then
gistfile1-2 copy 8.applescript
set temptext to thread URL of front document
gistfile1-2 copy 8.applescript
set temprecoad to thread attributes of front document
gistfile1-2 copy 8.applescript
set temparray to text items of temptext
gistfile1-2 copy 8.applescript
open location ("http://p2.2ch.net/p2/post_form.php?host=" & item 3 of temparray & "&bbs=" & item 6 of temparray & "&key=" & item 7 of temparray & "&rescount=" & (get |Count| of temprecoad))
gistfile1-2 copy 8.applescript
property thePhoneGroup : "Phone"
Update Phone Group.applescript
property theNotPhoneGroup : "Not Phone"
Update Phone Group.applescript
on createGroup(str)
Update Phone Group.applescript
get group str
Update Phone Group.applescript
make new group with properties {name:str}
Update Phone Group.applescript
my createGroup(thePhoneGroup)
Update Phone Group.applescript
my createGroup(theNotPhoneGroup)
Update Phone Group.applescript
set allContacts to every person
Update Phone Group.applescript
repeat with p in allContacts
Update Phone Group.applescript
if (count of phone of p) is 0 then
Update Phone Group.applescript
if (name of groups of p contains thePhoneGroup) then remove p from group thePhoneGroup
Update Phone Group.applescript
if (name of groups of p does not contain thePhoneGroup) then
Update Phone Group.applescript
add p to group thePhoneGroup
Update Phone Group.applescript
if (name of groups of p contains thePhoneGroup and name of groups of p contains theNotPhoneGroup) then remove p from group thePhoneGroup
Update Phone Group.applescript
set hours of today to 0
Today.applescript
set minutes of today to 0
Today.applescript
set tomorrow to today + 1 * days
Today.applescript
set yesterday to today - (1 * days)
Today.applescript
set yesterdaysName to the date string of yesterday
Today.applescript
set todaysName to the date string of today
Today.applescript
on buildTimeString(theDate)
Today.applescript
set timeStr to time string of theDate
Today.applescript
end buildTimeString
Today.applescript
on eventsForDay(theDay)
Today.applescript
repeat with c in (every calendar)
Today.applescript
repeat with e in ((every event in c) whose (start date) is greater than or equal to theDay and (start date) is less than theDay + (1 * days) and (start date) is not in (excluded dates))
Today.applescript
if (allday event of e) then
Today.applescript
set end of theEvents to ("All Day: " & (summary of e))
Today.applescript
set startDate to start date of e
Today.applescript
set timeString to buildTimeString(startDate) of me
Today.applescript
set end of theEvents to (timeString & ": " & (summary of e))
Today.applescript
return theEvents
Today.applescript
end eventsForDay
Today.applescript
set todaysEvents to eventsForDay(today) of me
Today.applescript
if length of todaysEvents is 0 then
Today.applescript
set noteBody to "<h2>No Events</h2>"
Today.applescript
set noteBody to "<h2>Events</h2><ul>"
Today.applescript
repeat with theEvent in todaysEvents
Today.applescript
set noteBody to noteBody & "<li>" & theEvent & "</li>"
Today.applescript
set noteBody to noteBody & "</ul>"
Today.applescript
set noteBody to noteBody & "<br><h2>Tasks</h2>"
Today.applescript
move note yesterdaysName to folder "Archive"
Today.applescript
set noteTitle to "<h1>" & todaysName & "</h1><br>"
Today.applescript
make new note at folder "Projects" with properties {name:" ", body:noteTitle & noteBody}
Today.applescript
display alert "message"
display alert "message".applescript
set myOutput to "I see"
012_using_repeat_to_create_loops.applescript
repeat with i from 1 to the count of theImages
012_using_repeat_to_create_loops.applescript
set myOutput to myOutput & " " & i & " - " & item i of theImages
012_using_repeat_to_create_loops.applescript
tell (window 1)
Safari - Reload all tabs in front window.applescript
repeat with t from 1 to the count of every tab
Safari - Reload all tabs in front window.applescript
do JavaScript "window.location.reload()" in tab t
Safari - Reload all tabs in front window.applescript
tell process "Things3"
DeferredThings.scpt