text
stringlengths
0
15.7k
source
stringlengths
6
112
theDict's setObject:(theEvent's attendees()'s valueForKey:"name") forKey:"event_attendees"
lns3.scpt
theDict's setObject:{} forKey:"event_attendees"
lns3.scpt
theDict's setObject:(theEvent's |hasRecurrenceRules|()) forKey:"event_is_recurring"
lns3.scpt
theDict's setObject:(theEvent's |creationDate|()) forKey:"event_creation_date"
lns3.scpt
set theResult to (theEvent's organizer())
lns3.scpt
if theResult is not missing value then
lns3.scpt
set theResult to (theResult's |name|())
lns3.scpt
if theResult is not missing value then theDict's setObject:theResult forKey:"event_organizer"
lns3.scpt
set theResult to (theEvent's |occurrenceDate|())
lns3.scpt
if theResult is not missing value then theDict's setObject:theResult forKey:"event_original_date"
lns3.scpt
set theResult to (theEvent's status())
lns3.scpt
if theResult is missing value then
lns3.scpt
theDict's setObject:"none" forKey:"event_status"
lns3.scpt
theDict's setObject:(item (theResult + 1) of {"none", "confirmed", "tentative", "canceled"}) forKey:"event_status"
lns3.scpt
end event info for
lns3.scpt
on event attendees for event theEvent
lns3.scpt
if theEvent's hasAttendees() as boolean then
lns3.scpt
set theAttendees to theEvent's attendees()
lns3.scpt
set theArray to current application's NSMutableArray's array()
lns3.scpt
repeat with anAttendee in theAttendees
lns3.scpt
set theDict to (current application's NSMutableDictionary's dictionaryWithObjects:{theNull} forKeys:{"attendee_email"})
lns3.scpt
(theDict's setObject:(anAttendee's |name|()) forKey:"attendee_name")
lns3.scpt
set theEmail to anAttendee's |URL|()
lns3.scpt
if theEmail is not missing value then (theDict's setObject:(theEmail's |resourceSpecifier|()) forKey:"attendee_email")
lns3.scpt
set theStatus to anAttendee's |participantStatus|() as integer
lns3.scpt
(theDict's setObject:(item (theStatus + 1) of {"unknown", "pending", "accepted", "declined", "tentative", "delegated", "completed", "in process"}) forKey:"attendee_status")
lns3.scpt
set theType to anAttendee's |participantType|() as integer
lns3.scpt
(theDict's setObject:(item (theType + 1) of {"unknown", "person", "room", "resource", "group"}) forKey:"attendee_type")
lns3.scpt
set theRole to anAttendee's |participantRole|() as integer
lns3.scpt
(theDict's setObject:(item (theRole + 1) of {"unknown", "required", "optional", "chair", "nonparticipant"}) forKey:"attendee_role")
lns3.scpt
(theArray's addObject:(theDict's |copy|()))
lns3.scpt
end event attendees for
lns3.scpt
on event recurrence for event theEvent
lns3.scpt
set theDict to (current application's NSMutableDictionary's dictionaryWithObjects:{theNull} forKeys:{"occurrence_end_date"})
lns3.scpt
set theRule to theEvent's |recurrenceRules|()'s firstObject()
lns3.scpt
set theFreq to theRule's frequency() as integer
lns3.scpt
(theDict's setObject:(item (theFreq + 1) of {"daily", "weekly", "monthly", "yearly"}) forKey:"occurrence_frequency")
lns3.scpt
(theDict's setObject:(theRule's interval()) forKey:"occurrence_interval")
lns3.scpt
set recurrEnd to theRule's |recurrenceEnd|()
lns3.scpt
if recurrEnd is not missing value then
lns3.scpt
set recurrEndDate to recurrEnd's |endDate|()
lns3.scpt
if recurrEndDate is not missing value then theDict's setObject:recurrEndDate forKey:"occurrence_end_date"
lns3.scpt
set recurrCount to recurrEnd's |occurrenceCount|()
lns3.scpt
theDict's setObject:recurrCount forKey:"occurrence_count"
lns3.scpt
end event recurrence for
lns3.scpt
use framework "Carbon" -- AEInteractWithUser() is in Carbon
lns3.scpt
property NSOffState : a reference to 0
lns3.scpt
property NSStringDrawingUsesLineFragmentOrigin : a reference to 1
lns3.scpt
property NSNoImage : a reference to 0
lns3.scpt
property NSSmallControlSize : a reference to 1
lns3.scpt
property NSModalPanelWindowLevel : a reference to 8
lns3.scpt
property NSSwitchButton : a reference to 3
lns3.scpt
property NSModalResponseCancel : a reference to 0
lns3.scpt
property NSBoxSeparator : a reference to 2
lns3.scpt
property NSRadioButton : a reference to 4
lns3.scpt
property NSRoundedBezelStyle : a reference to 1
lns3.scpt
property NSMomentaryPushInButton : a reference to 7
lns3.scpt
property NSOnState : a reference to 1
lns3.scpt
property NSRadioModeMatrix : a reference to 0
lns3.scpt
property NSBackingStoreBuffered : a reference to 2
lns3.scpt
property NSPathStyleStandard : a reference to 0
lns3.scpt
property NSModalResponseAbort : a reference to -1001
lns3.scpt
property NSNoTitle : a reference to 0
lns3.scpt
property NSRegularControlSize : a reference to 0
lns3.scpt
property NSPathStylePopUp : a reference to 2
lns3.scpt
property NSLineBorder : a reference to 1
lns3.scpt
property NSMiniControlSize : a reference to 2
lns3.scpt
property NSTitledWindowMask : a reference to 1
lns3.scpt
property NSRightTextAlignment : a reference to current application's NSRightTextAlignment
lns3.scpt
property NSCenterTextAlignment : a reference to current application's NSCenterTextAlignment
lns3.scpt
property NSLeftTextAlignment : a reference to current application's NSLeftTextAlignment
lns3.scpt
property NSImage : a reference to current application's NSImage
lns3.scpt
property NSImageView : a reference to current application's NSImageView
lns3.scpt
property NSMatrix : a reference to current application's NSMatrix
lns3.scpt
property NSPathControl : a reference to current application's NSPathControl
lns3.scpt
property NSPopUpButton : a reference to current application's NSPopUpButton
lns3.scpt
property NSFont : a reference to current application's NSFont
lns3.scpt
property NSModalPanelRunLoopMode : a reference to current application's NSModalPanelRunLoopMode
lns3.scpt
property NSView : a reference to current application's NSView
lns3.scpt
property NSApp : a reference to current application's NSApp
lns3.scpt
property NSBox : a reference to current application's NSBox
lns3.scpt
property NSWindow : a reference to current application's NSWindow
lns3.scpt
property NSButtonCell : a reference to current application's NSButtonCell
lns3.scpt
property NSObject : a reference to current application's NSObject
lns3.scpt
property NSTextField : a reference to current application's NSTextField
lns3.scpt
property |NSURL| : a reference to current application's |NSURL|
lns3.scpt
property NSScreen : a reference to current application's NSScreen
lns3.scpt
property NSAlert : a reference to current application's NSAlert
lns3.scpt
property NSButton : a reference to current application's NSButton
lns3.scpt
property NSFontAttributeName : a reference to current application's NSFontAttributeName
lns3.scpt
property NSThread : a reference to current application's NSThread
lns3.scpt
property NSDictionary : a reference to current application's NSDictionary
lns3.scpt
property NSAttributedString : a reference to current application's NSAttributedString
lns3.scpt
property NSSecureTextField : a reference to current application's NSSecureTextField
lns3.scpt
property buttonSideInset : 16
lns3.scpt
property buttonYValue : 13
lns3.scpt
property accViewSideInset : 22
lns3.scpt
property accViewYValue : 50
lns3.scpt
property accViewTopGap : 20
lns3.scpt
property minimumButtonWidth : 81
lns3.scpt