Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Task: Tmp2_CalendarEventListener
- <Creating new event>
- A1: If [ 1 ~ 1 ]
- A2: Multiple Variables Set [
- Names: %[email protected]
- %ce_account_type=com.google.android.gm.exchange
- %ce_is_organizer=false
- %ce_visible=true
- %ce_title=Tasker test
- %ce_description=A test of tasker
- %ce_start_time=1742850000000
- %ce_end_time=1742851800000
- %ce_timezone=Europe/Oslo
- %ce_all_day=false
- %ce_location=Oslo, Norge
- %ce_available=false
- %ce_color=#71AEA7
- %ce_guests_can_invite=true
- %ce_guests_can_modify=true
- %ce_guests_can_see_guests=true
- %ce_attendee_id1=525
- %ce_attendee_name1=Lars
- %ce_attendee_relationship1=owner
- %ce_attendee_relationship_code1=required
- %ce_attendee_status1=Accepted
- %ce_attendee_status_code1=1
- %ce_attendee_type1=Required
- %ce_attendee_type_code1=1
- %ce_attendee_id2=526
- %ce_attendee_name2=Lars
- %ce_attendee_relationship2=speaker
- %ce_attendee_relationship_code2=optional
- %ce_attendee_status2=Invited
- %ce_attendee_status_code2=3
- %ce_attendee_type2=Required
- %ce_attendee_type_code2=1
- %ce_reminder_id1=250
- %ce_reminder_method1=Alert
- %ce_reminder_method_code1=1
- %ce_reminder_minutes_prior1=30
- Values Splitter: =
- Structure Output (JSON, etc): On ]
- A3: Parse/Format DateTime [
- Input Type: Now (Current Date And Time)
- Output Offset Type: None
- Time Zone: Europe/Oslo ]
- A4: Variable Set [
- Name: %ce_start_time
- To: %TIMEMS+(60*60*1000*2)
- Do Maths: On
- Max Rounding Digits: 3
- Structure Output (JSON, etc): On ]
- A5: Variable Set [
- Name: %ce_end_time
- To: %ce_start_time+(60*60*1000*2)
- Do Maths: On
- Max Rounding Digits: 3
- Structure Output (JSON, etc): On ]
- A6: Edit Calendar Event [
- Action: Add
- Calendar: Google:[email protected]
- Title: %ce_title
- Description: %ce_description
- All Day: %ce_all_day
- Start Time: %ce_start_time
- End Time: %ce_end_time
- Organizer: %ce_is_organizer
- Location: %ce_location
- Availability: %ce_available
- Colour: %ce_color ]
- <Start recursing through attendees>
- A7: If [ %ce_attendee_id(#) > 0 ]
- A8: Variable Set [
- Name: %attendee_id
- To: 0
- Structure Output (JSON, etc): On ]
- <Recurse_attendees>
- A9: Variable Set [
- Name: %attendee_id
- To: %attendee_id+1
- Do Maths: On
- Max Rounding Digits: 3
- Structure Output (JSON, etc): On ]
- A10: Edit Calendar Attendee [
- Action: Update
- Event ID: %ce_event_id
- Attendee ID: %ce_attendee_id(%attendee_id)
- Name: %ce_attendee_name(%attendee_id)
- Email: %ce_attendee_email(%attendee_id)
- Status: %ce_attendee_status(%attendee_id)
- Relationship: %ce_attendee_relationship(%attendee_id)
- Type: %ce_attendee_type(%attendee_id) ]
- A11: Goto [
- Type: Action Label
- Label: Recurse_attendees ]
- If [ %attendee_id < %ce_attendee_id(#) ]
- A12: Else
- A13: List Dialog [
- Mode: Select Single Item
- Title: Debug
- Items: No attendees...
- Event ID: %ce_event_id
- Attendee ID: %ce_attendee_id(%attendee_id)
- Name: %ce_attendee_name(%attendee_id)
- Email: %ce_attendee_email(%attendee_id)
- Status: %ce_attendee_status(%attendee_id)
- Relationship: %ce_attendee_relationship(%attendee_id)
- Type: %ce_attendee_type(%attendee_id)
- Close After (Seconds): 30
- First Visible Index: 0 ]
- <End recursing through attendees>
- A14: End If
- <Start recursing through reminders>
- A15: If [ %ce_reminder_id(#) > 0 ]
- A16: Variable Set [
- Name: %reminder_id
- To: 0
- Structure Output (JSON, etc): On ]
- <Recurse_reminders>
- A17: Variable Set [
- Name: %reminder_id
- To: %reminder_id+1
- Do Maths: On
- Max Rounding Digits: 3
- Structure Output (JSON, etc): On ]
- A18: Edit Calendar Reminder [
- Action: Update
- Event ID: %ce_event_id
- Reminder ID: %ce_reminder_id(%reminder_id)
- Minutes Prior: %ce_reminder_minutes_prior(%reminder_id)
- Method: %ce_reminder_method(%reminder_id) ]
- A19: Goto [
- Type: Action Label
- Label: Recurse_reminders ]
- If [ %reminder_id < %ce_reminder_id(#) ]
- A20: Else
- A21: [X] List Dialog [
- Mode: Select Single Item
- Title: Debug
- Items: No reminders...
- Event ID: %ce_event_id
- Reminder ID: %ce_reminder_id(%reminder_id)
- Minutes prior: %ce_reminder_minutes_prior(%reminder_id)
- Method: %ce_reminder_method(%reminder_id)
- Close After (Seconds): 30
- First Visible Index: 0 ]
- <End recursing through reminders>
- A22: End If
- A23: End If
- <Reading back>
- A24: If [ 1 ~ 1 ]
- A25: Get Calendar Events [
- Event ID: %ce_event_id ]
- A26: Stop [ ]
- If [ %ce_account !~R lXXXm.* ]
- A27: Get Calendar Reminders [
- Event ID: %cc_event_ids_added1 ]
- A28: Get Calendar Attendees [
- Event ID: %cc_event_ids_added1 ]
- <Add new event>
- A29: Edit Calendar Event [
- Action: Add
- Calendar: Google:[email protected]
- Title: %ce_title
- Description: %ce_description
- All Day: %ce_all_day
- Start Time: %ce_start_time
- End Time: %ce_end_time
- Location: %ce_location
- Availability: %ce_available
- Colour: %ce_color ]
- <Start recursing through attendees>
- A30: If [ %ce_attendee_id(#) > 0 ]
- A31: Variable Set [
- Name: %attendee_id
- To: 0
- Structure Output (JSON, etc): On ]
- <Recurse_attendees>
- A32: Variable Set [
- Name: %attendee_id
- To: %attendee_id+1
- Do Maths: On
- Max Rounding Digits: 3
- Structure Output (JSON, etc): On ]
- A33: List Dialog [
- Mode: Select Single Item
- Title: Debug
- Items: Event ID: %ce_event_id
- , Attendee ID: %ce_attendee_id(%attendee_id)
- , Name: %ce_attendee_name(%attendee_id)
- , Email: %ce_attendee_email(%attendee_id)
- , Status: %ce_attendee_status(%attendee_id)
- , Relationship: %ce_attendee_relationship(%attendee_id)
- , Type: %ce_attendee_type(%attendee_id)
- Close After (Seconds): 30
- First Visible Index: 0 ]
- A34: Edit Calendar Attendee [
- Action: Update
- Event ID: %ce_event_id
- Attendee ID: %ce_attendee_id(%attendee_id)
- Name: %ce_attendee_name(%attendee_id)
- Email: %ce_attendee_email(%attendee_id)
- Status: %ce_attendee_status(%attendee_id)
- Relationship: %ce_attendee_relationship(%attendee_id)
- Type: %ce_attendee_type(%attendee_id) ]
- A35: Goto [
- Type: Action Label
- Label: Recurse_attendees ]
- If [ %attendee_id < %ce_attendee_id(#) ]
- A36: Else
- <End recursing through attendees>
- A37: End If
- <Start recursing through reminders>
- A38: If [ %ce_reminder_id(#) > 0 ]
- A39: Variable Set [
- Name: %reminder_id
- To: 0
- Structure Output (JSON, etc): On ]
- <Recurse_reminders>
- A40: Variable Set [
- Name: %reminder_id
- To: %reminder_id+1
- Do Maths: On
- Max Rounding Digits: 3
- Structure Output (JSON, etc): On ]
- A41: List Dialog [
- Mode: Select Single Item
- Title: Debug
- Items: Event ID: %ce_event_id
- Reminder ID: %ce_reminder_id(%reminder_id)
- Minutes prior: %ce_reminder_minutes_prior(%reminder_id)
- Method: %ce_reminder_method(%reminder_id)
- Close After (Seconds): 30
- First Visible Index: 0 ]
- A42: Edit Calendar Reminder [
- Action: Update
- Event ID: %ce_event_id
- Reminder ID: %ce_reminder_id(%reminder_id)
- Minutes Prior: %ce_reminder_minutes_prior(%reminder_id)
- Method: %ce_reminder_method(%reminder_id) ]
- A43: Goto [
- Type: Action Label
- Label: Recurse_reminders ]
- If [ %reminder_id < %ce_reminder_id(#) ]
- A44: Else
- <End recursing through reminders>
- A45: End If
- A46: End If
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement