text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
my createFadein(eachCue)
|
Create fade in.applescript
|
set theReference to do shell script "/usr/bin/curl 'http://localhost:23119/better-bibtex/cayw?format=mmd' 2>/dev/null; exit 0"
|
zotpick-mmd.applescript
|
global somedayContextName
|
someday.applescript
|
set somedayContextName to "Someday / Maybe"
|
someday.applescript
|
set somedayContext to first flattened context where its name = somedayContextName
|
someday.applescript
|
display notification "You need to select at least 1 task" with title "OmniFocus"
|
someday.applescript
|
set existingContext to context of thisItem
|
someday.applescript
|
if existingContext is somedayContext then
|
someday.applescript
|
set context of thisItem to missing value
|
someday.applescript
|
set context of thisItem to somedayContext
|
someday.applescript
|
display notification "Changed tasks:" & totalItems with title "OmniFocus"
|
someday.applescript
|
set the_record to {first_name:"Anthony", age:37, date_of_birth:date "Monday, December 4, 1967 12:00:00 AM"}
|
Script 17-10.applescript
|
set full_path to (path to desktop as text) & "record_data"
|
Script 17-10.applescript
|
set file_ID to open for access file full_path with write permission
|
Script 17-10.applescript
|
write the_record to file_ID as record
|
Script 17-10.applescript
|
set titleString to ""
|
Get Chrome Tab Names.applescript
|
set titleString to titleString & the_title & return
|
Get Chrome Tab Names.applescript
|
set outputfolderpath to (choose folder with prompt "Choose PDFOutput Folder" without invisibles) as text
|
Export - Page 1 as PDF.applescript
|
set quarkfilename to name of document 1
|
Export - Page 1 as PDF.applescript
|
set filename to outputfolderpath & quarkfilename & ".pdf" as text
|
Export - Page 1 as PDF.applescript
|
export page 1 as "PDF" in ((outputfolderpath & (quarkfilename) & ".pdf") as text) PDF output style "kast"
|
Export - Page 1 as PDF.applescript
|
if (theMessage is "yo") and theBuddyName is "Daniele Ciriello" then
|
yoBitchMessageRemoteControl.applescript
|
set theResponse to "bitch"
|
yoBitchMessageRemoteControl.applescript
|
global xlsCols --number of selected columns in the excel doc
|
excel-to-omnigraffle-applescript.scpt
|
global xlsRows --number of selected rows in the excel doc
|
excel-to-omnigraffle-applescript.scpt
|
global numCells
|
excel-to-omnigraffle-applescript.scpt
|
global cellWidth
|
excel-to-omnigraffle-applescript.scpt
|
global cellHeight
|
excel-to-omnigraffle-applescript.scpt
|
global xlsdata
|
excel-to-omnigraffle-applescript.scpt
|
set cellWidth to 120 --size of cell width
|
excel-to-omnigraffle-applescript.scpt
|
set cellHeight to 22 --size of cell height
|
excel-to-omnigraffle-applescript.scpt
|
set cellFont to "Arial" --cell font
|
excel-to-omnigraffle-applescript.scpt
|
set lineColor to {53466, 53465, 53466} -- color of the lines in the table
|
excel-to-omnigraffle-applescript.scpt
|
set cellColor1 to {1, 1, 1} --- default background color of the table
|
excel-to-omnigraffle-applescript.scpt
|
set textColor to {0, 0, 0} --default text color of the table
|
excel-to-omnigraffle-applescript.scpt
|
set cellColor2 to {57311, 57311, 57311} -- background color of every other row if there is row striping
|
excel-to-omnigraffle-applescript.scpt
|
set xlsdata to {} --holder of excel data
|
excel-to-omnigraffle-applescript.scpt
|
set props to properties of selection
|
excel-to-omnigraffle-applescript.scpt
|
if selection is null or formula of selection is "" then
|
excel-to-omnigraffle-applescript.scpt
|
display dialog "You have not made a selection." & return & "Please select the cells you would like to import into Omnigraffle and try again."
|
excel-to-omnigraffle-applescript.scpt
|
set xlsRows to length of formula of props
|
excel-to-omnigraffle-applescript.scpt
|
set xlsCols to length of item 1 in formula of props
|
excel-to-omnigraffle-applescript.scpt
|
set numCells to xlsRows * xlsCols
|
excel-to-omnigraffle-applescript.scpt
|
set celldata to ""
|
excel-to-omnigraffle-applescript.scpt
|
repeat with j from 1 to numCells
|
excel-to-omnigraffle-applescript.scpt
|
set celldata to string value of cell j of selection
|
excel-to-omnigraffle-applescript.scpt
|
set xlsdata to xlsdata & celldata
|
excel-to-omnigraffle-applescript.scpt
|
log "end of excel copy"
|
excel-to-omnigraffle-applescript.scpt
|
display dialog "Would you like to use row striping?" & return & "('y' or 'n')" default answer ""
|
excel-to-omnigraffle-applescript.scpt
|
set striping_yn to text returned of the result as string
|
excel-to-omnigraffle-applescript.scpt
|
if striping_yn is not equal to "y" and striping_yn is not equal to "Y" then
|
excel-to-omnigraffle-applescript.scpt
|
set striping_yn to "n"
|
excel-to-omnigraffle-applescript.scpt
|
set cellX to 0
|
excel-to-omnigraffle-applescript.scpt
|
set cellY to 0
|
excel-to-omnigraffle-applescript.scpt
|
set cellNum to 1
|
excel-to-omnigraffle-applescript.scpt
|
set cellColor to cellColor1
|
excel-to-omnigraffle-applescript.scpt
|
set selectedCells to {}
|
excel-to-omnigraffle-applescript.scpt
|
set theLayer to (make new layer at beginning of layers with properties {name:"excel data grid"})
|
excel-to-omnigraffle-applescript.scpt
|
repeat with k from 1 to xlsRows
|
excel-to-omnigraffle-applescript.scpt
|
repeat with i from 1 to xlsCols
|
excel-to-omnigraffle-applescript.scpt
|
make new shape at beginning of graphics of theLayer with properties {origin:{cellX, cellY}, size:{cellWidth, cellHeight}, draws shadow:false, name:"Rectangle", text:{size:14, text:item cellNum of xlsdata, font:cellFont, color:textColor}, stroke color:lineColor, thickness:1, fill color:cellColor}
|
excel-to-omnigraffle-applescript.scpt
|
set cellX to cellX + cellWidth
|
excel-to-omnigraffle-applescript.scpt
|
set cellNum to cellNum + 1
|
excel-to-omnigraffle-applescript.scpt
|
if striping_yn is not equal to "n" then
|
excel-to-omnigraffle-applescript.scpt
|
if cellColor is equal to cellColor1 then
|
excel-to-omnigraffle-applescript.scpt
|
set cellColor to cellColor2
|
excel-to-omnigraffle-applescript.scpt
|
set cellY to cellY + cellHeight
|
excel-to-omnigraffle-applescript.scpt
|
set selection to graphics of theLayer
|
excel-to-omnigraffle-applescript.scpt
|
tell application "OmniGraffle Professional 5" to activate
|
excel-to-omnigraffle-applescript.scpt
|
tell process "OmniGraffle Professional"
|
excel-to-omnigraffle-applescript.scpt
|
click menu item "Make Table" of menu "Arrange" of menu bar 1
|
excel-to-omnigraffle-applescript.scpt
|
return 1200
|
AutoPurge.applescript
|
log formatNumber(10, 2)
|
formatNumber.applescript
|
log formatNumber(1.234, 1)
|
formatNumber.applescript
|
on formatNumber(n, p)
|
formatNumber.applescript
|
set n to round (n * (10 ^ p))
|
formatNumber.applescript
|
set t to n / (10 ^ p) as text
|
formatNumber.applescript
|
set x to "1.2" as number
|
formatNumber.applescript
|
set decimalPoint to "."
|
formatNumber.applescript
|
set x to "1,2" as number
|
formatNumber.applescript
|
set decimalPoint to ","
|
formatNumber.applescript
|
set decimalPointOffset to offset of decimalPoint in t
|
formatNumber.applescript
|
set positionFromEnd to (length of t) - decimalPointOffset
|
formatNumber.applescript
|
set missingZeroes to p - positionFromEnd
|
formatNumber.applescript
|
repeat missingZeroes times
|
formatNumber.applescript
|
set t to t & "0"
|
formatNumber.applescript
|
set _projectlist to every project's name
|
Things to Reminders.applescript
|
set _workproject to my choosefromList(_projectlist, "Choose which Things project you want to export to Reminders")
|
Things to Reminders.applescript
|
my exportThingsProjets(_workproject)
|
Things to Reminders.applescript
|
on exportThingsProjets(_project)
|
Things to Reminders.applescript
|
set _projectlist to _project
|
Things to Reminders.applescript
|
set _items to every to do of project _projectlist
|
Things to Reminders.applescript
|
repeat with _todo in _items
|
Things to Reminders.applescript
|
set _name to name of _todo
|
Things to Reminders.applescript
|
set _note to notes of _todo
|
Things to Reminders.applescript
|
set _duedate to due date of _todo
|
Things to Reminders.applescript
|
set _status to status of _todo as string
|
Things to Reminders.applescript
|
tag names of _todo as string
|
Things to Reminders.applescript
|
_status
|
Things to Reminders.applescript
|
set mylist to list _projectlist
|
Things to Reminders.applescript
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.