Jump to content

jayelevy

Member
  • Content Count

    4
  • Joined

  • Last visited

  1. My apologies for misunderstanding your request. I surely didn't expect you to go find the add-in nor rebuild anything. The problem is not with the add-in. The problem is with the way Alfred is handling the script and my use of "use scripting additions" If this forum is not the right place for this type of support, I'll try to sort this on my own. https://www.dropbox.com/s/rrvy9oog23bki6x/Broken workflow for Alfred Forums.alfredworkflow?dl=0
  2. See below for the full script... If I eliminate this section, the script runs fine: use scripting additions use application "SatimageOSAX" set theOrganizerEmailParsed to splittext theOrganizerEmail using "@" set theOrganizerName to item 1 of theOrganizerEmailParsed set theOrganizer to change "." in theOrganizerName into " " it's also worth noting I'm able to access and use other functions from SatimageOSAX additions in other AppleScripts run straight from Script Editor. on run argv tell application "Microsoft Outlook" set meetingSet to selected objects set allAttendees to "" repeat with aMeeting in meetingSet set theSubject to subject of (item 1 of aMeeting) set theDate to start time of (item 1 of aMeeting) set theContent to content of (item 1 of aMeeting) set theOrganizerEmail to organizer of (item 1 of aMeeting) set ParticipantCount to count of every attendee in aMeeting if ParticipantCount > 30 then set allAttendees to " > 30" else repeat with aParticipant in attendees of aMeeting set theParticipant to item 1 of aParticipant set theParticipantEmail to email address of theParticipant try set theParticipantName to name of theParticipantEmail on error number -1728 set theParticipantName to address of theParticipantEmail end try set allAttendees to allAttendees & theParticipantName & "; " end repeat end if -- set theMeetingContent to "<hr/>" & "organizer: " & theOrganizer & "<br/>" & "invitees: " & allAttendees & "<br/>" & theContent & "<hr/>" end repeat end tell use scripting additions use application "SatimageOSAX" set theOrganizerEmailParsed to splittext theOrganizerEmail using "@" set theOrganizerName to item 1 of theOrganizerEmailParsed set theOrganizer to change "." in theOrganizerName into " " -- set theOrganizer to theOrganizerEmail tell application "Evernote" activate set DefaultNotebook to (system attribute "theNotebookName") set theMeetingDate to "meeting date: " & theDate & "<br/><br/>" set theParticipantsHeader to "participants: " & "<br/><br/>" set theDiscussionHeader to "discussion:" & "<br/><br/>" set thePrepHeader to "prep:" & "<br/><br/>" set theOrganizerFormatted to "<hr/>" & "organizer: " & theOrganizer & "<br/>" set theAttendeesFormatted to "invitees: " & allAttendees & "<br/>" set theFullContent to theMeetingDate & theParticipantsHeader & theDiscussionHeader & thePrepHeader & theOrganizerFormatted & theAttendeesFormatted & theContent set NewNote to create note title "Meeting: " & theSubject with html theFullContent notebook DefaultNotebook open note window with NewNote end tell end run
  3. I just upgraded to Mojave and am trying to re-enable a workflow that previously worked. I think I've narrowed down the problem to use of scripting additions. The script works fine when running outside of Alfred (ie, in ScriptEditor). When I trigger from an Alfred workflow, I get the following error: [2019-03-19 15:43:27][ERROR: action.script] /Users/*****/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Scripts/3A6E9A07-7A4F-4C71-9EC7-C40B3653134C:1079:1082: script error: Expected “end” but found “use”. (-2741) The portion of the script that is failing is here: use scripting additions use application "SatimageOSAX" set theOrganizerEmailParsed to splittext theOrganizerEmail using "@" I'm at a loss on further steps for troubleshooting. Other Alfred workflows that include AppleScript are working fine. Seems all of my Security settings are complete. Any tips? thanks -- jay
  4. Simply change the script as follows: current: make new reminder with properties {name:q} new: make new reminder with properties {name:q, due date:(current date)}
×
×
  • Create New...