text stringlengths 0 15.7k | source stringlengths 6 112 |
|---|---|
error "Neither the old '" & layoutOldName of prefs & "' nor the current layout name '" & layoutName & "' already exist - PROBLEM!" | fmGUI_ManageLayouts_Edit.applescript |
if foundThisLayout and not foundOldLayout then fmGUI_ManageLayouts_Select({layoutName:layoutName}) | fmGUI_ManageLayouts_Edit.applescript |
set tabButton to radio button "General" of tab group 1 of window 1 | fmGUI_ManageLayouts_Edit.applescript |
fmGUI_ObjectClick_Button({buttonRef:tabButton}) | fmGUI_ManageLayouts_Edit.applescript |
set layoutNameObj to text field "Layout Name" of tab group 1 of window 1 | fmGUI_ManageLayouts_Edit.applescript |
fmGUI_TextFieldSet({objRef:layoutNameObj, objValue:layoutName}) | fmGUI_ManageLayouts_Edit.applescript |
if not doNotChangeExisting of prefs then | fmGUI_ManageLayouts_Edit.applescript |
set includeInMenuCheck to checkbox "Include in layout menus" of tab group 1 of window 1 | fmGUI_ManageLayouts_Edit.applescript |
set sourceTO to pop up button 1 of tab group 1 of window 1 | fmGUI_ManageLayouts_Edit.applescript |
set menuSet to pop up button 2 of tab group 1 of window 1 | fmGUI_ManageLayouts_Edit.applescript |
fmGUI_CheckboxSet({objRef:includeInMenuCheck, objValue:includeInLayoutMenus of prefs}) | fmGUI_ManageLayouts_Edit.applescript |
if baseTableName of prefs is not null then fmGUI_PopupSet({objRef:sourceTO, objValue:baseTableName of prefs}) | fmGUI_ManageLayouts_Edit.applescript |
fmGUI_PopupSet({objRef:menuSet, objValue:menuSet of prefs}) | fmGUI_ManageLayouts_Edit.applescript |
set tabButton to radio button "Views" of tab group 1 of window 1 | fmGUI_ManageLayouts_Edit.applescript |
set formViewCheck to checkbox "Table View" of tab group 1 of window 1 | fmGUI_ManageLayouts_Edit.applescript |
set listViewCheck to checkbox "List View" of tab group 1 of window 1 | fmGUI_ManageLayouts_Edit.applescript |
set tableViewCheck to checkbox "Form View" of tab group 1 of window 1 | fmGUI_ManageLayouts_Edit.applescript |
set defaultViewObj to pop up button 1 of tab group 1 of window 1 | fmGUI_ManageLayouts_Edit.applescript |
fmGUI_CheckboxSet({objRef:formViewCheck, objValue:formViewEnabled of prefs}) | fmGUI_ManageLayouts_Edit.applescript |
fmGUI_CheckboxSet({objRef:listViewCheck, objValue:listViewEnabled of prefs}) | fmGUI_ManageLayouts_Edit.applescript |
fmGUI_CheckboxSet({objRef:tableViewCheck, objValue:tableViewEnabled of prefs}) | fmGUI_ManageLayouts_Edit.applescript |
fmGUI_PopupSet({objRef:defaultViewObj, objValue:defaultView of prefs}) | fmGUI_ManageLayouts_Edit.applescript |
error "unable to fmGUI_ManageLayouts_Edit - " & errMsg number errNum | fmGUI_ManageLayouts_Edit.applescript |
end fmGUI_ManageLayouts_Edit | fmGUI_ManageLayouts_Edit.applescript |
tell application "htcLib" to fmGUI_ManageLayouts_OpenEditForSelected(prefs) | fmGUI_ManageLayouts_Edit.applescript |
set theseUserTemplateNames to ¬ | fetch-calendar-events.scpt |
(the name of every template whose id of it begins with "CloudKit/") | fetch-calendar-events.scpt |
set thisUserTemplateName to "Declaraform" | fetch-calendar-events.scpt |
if thisUserTemplateName is not in theseUserTemplateNames then | fetch-calendar-events.scpt |
set thisMessage to "The Numbers template “" & thisUserTemplateName & "” " & ¬ | fetch-calendar-events.scpt |
"is not installed on this computer." & return & return & ¬ | fetch-calendar-events.scpt |
"Download the template from the company webiste." | fetch-calendar-events.scpt |
display alert "MISSING TEMPLATE" message thisMessage ¬ | fetch-calendar-events.scpt |
buttons {"Download", "Cancel"} default button 2 | fetch-calendar-events.scpt |
if button returned of the result is "Download" then | fetch-calendar-events.scpt |
open location "https://" | fetch-calendar-events.scpt |
{document template:template thisUserTemplateName} | fetch-calendar-events.scpt |
display alert ("ERROR " & errorNumber) as string message errorMessage | fetch-calendar-events.scpt |
set d to (item 1 of m)'s |date|() -- get the NSDate of the first item | fetch-calendar-events.scpt |
set df to its NSDateFormatter's new() -- create a NSDateFormatter | fetch-calendar-events.scpt |
df's setLocale:(current application's NSLocale's localeWithLocaleIdentifier:"nl_NL") | fetch-calendar-events.scpt |
df's setDateFormat:"dd MM yyyy" -- a specified output format: "day/month/year" (day and month = two digits, year = 4 digits) | fetch-calendar-events.scpt |
return (df's stringFromDate:d) as text | fetch-calendar-events.scpt |
return "geen data" -- no match in this string | fetch-calendar-events.scpt |
set selected_month_date to ("1 " & selected_month) | fetch-calendar-events.scpt |
set DateString to my stringToDate(selected_month_date) | fetch-calendar-events.scpt |
set d1 to date DateString | fetch-calendar-events.scpt |
copy d1 to d2 | fetch-calendar-events.scpt |
tell d2 to set {day, day} to {32, day} | fetch-calendar-events.scpt |
set theCal to fetch calendar "whatever" cal type cal cloud event store theStore | fetch-calendar-events.scpt |
set theEvents to fetch events starting date d1 ending date d2 searching cals {theCal} event store theStore | fetch-calendar-events.scpt |
tell application id "com.apple.iCal" | fetch-calendar-events.scpt |
set theEvents to filter events by pattern event list theEvents event description "*Werkzaamheden buiten openingstijden.*" without using regex | fetch-calendar-events.scpt |
tell table "tabel-header-1" of sheet "declaraties" of document 1 | fetch-calendar-events.scpt |
set value of cell "D5" to d1 -- selected month | fetch-calendar-events.scpt |
tell table "tabel-header-2" of sheet "declaraties" of document 1 | fetch-calendar-events.scpt |
set eventInfo to (event info for event anEvent) | fetch-calendar-events.scpt |
tell anEvent | fetch-calendar-events.scpt |
set eventStart to eventInfo's event_start_date as date | fetch-calendar-events.scpt |
set eventEnd to eventInfo's event_end_date as date | fetch-calendar-events.scpt |
set theEventName to eventInfo's event_summary as string | fetch-calendar-events.scpt |
set theEventLocation to eventInfo's event_location as string | fetch-calendar-events.scpt |
set theDesc to eventInfo's event_description as string | fetch-calendar-events.scpt |
set theEventID to (event info for event (first item of theEvents)) | fetch-calendar-events.scpt |
set theID to event_external_ID of theEventID | fetch-calendar-events.scpt |
store event event anEvent event store theStore | fetch-calendar-events.scpt |
set eventLocation to eventInfo's event_summary | fetch-calendar-events.scpt |
set eventLocation to item 2 of (words of eventLocation) | fetch-calendar-events.scpt |
set rowOffset to 4 | fetch-calendar-events.scpt |
set rowNum to rowOffset + eventCount | fetch-calendar-events.scpt |
tell table "tabel-overuren" of sheet "declaraties" of document 1 | fetch-calendar-events.scpt |
set value of cell (rowNum) of column "B" to eventStart -- event date | fetch-calendar-events.scpt |
set value of cell (rowNum) of column "C" to eventStart -- event starttime | fetch-calendar-events.scpt |
set value of cell (rowNum) of column "D" to eventEnd -- event endtime | fetch-calendar-events.scpt |
set value of cell (rowNum) of column "E" to "0:00" -- pauze | fetch-calendar-events.scpt |
set value of cell (rowNum) of column "G" to eventLocation -- eventlocation | fetch-calendar-events.scpt |
set value of cell (rowNum) of column "H" to "Ja" -- pay | fetch-calendar-events.scpt |
set value of cell (rowNum) of column "I" to theEventName -- event name | fetch-calendar-events.scpt |
tell application id "com.apple.iCal" -- Calendar | fetch-calendar-events.scpt |
set theProps to properties of event id theID of (last calendar whose name is "whatever") | fetch-calendar-events.scpt |
property exportFileExtension : "pdf" | fetch-calendar-events.scpt |
property useEncryptionDefaultValue : true | fetch-calendar-events.scpt |
set the defaultDestinationFolder to (path to documents folder) | fetch-calendar-events.scpt |
set usePDFEncryption to useEncryptionDefaultValue | fetch-calendar-events.scpt |
"" buttons {"Cancel", "No Password", "OK"} ¬ | fetch-calendar-events.scpt |
default button 3 with hidden answer | fetch-calendar-events.scpt |
copy the result to ¬ | fetch-calendar-events.scpt |
{button returned:buttonPressed, text returned:firstPassword} | fetch-calendar-events.scpt |
{button returned:buttonPressed, text returned:secondPassword} | fetch-calendar-events.scpt |
display dialog "Passwords do no match." buttons ¬ | fetch-calendar-events.scpt |
{"Cancel", "Try Again"} default button 2 | fetch-calendar-events.scpt |
if documentName ends with ".numbers" then ¬ | fetch-calendar-events.scpt |
set documentName to text 1 thru -9 of documentName | fetch-calendar-events.scpt |
set exportItemFileName to documentName & "." & exportFileExtension | fetch-calendar-events.scpt |
repeat until not (exists document file exportItemFileName of defaultDestinationFolder) | fetch-calendar-events.scpt |
set exportItemFileName to ¬ | fetch-calendar-events.scpt |
documentName & "-" & (incrementIndex as string) & "." & exportFileExtension | fetch-calendar-events.scpt |
set the targetFileHFSpath to (defaultDestinationFolder as string) & exportItemFileName | fetch-calendar-events.scpt |
export front document to file targetFileHFSpath ¬ | fetch-calendar-events.scpt |
export front document to file targetFileHFSpath as PDF | fetch-calendar-events.scpt |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.