Jump to content

theboyler

Member
  • Content Count

    11
  • Joined

  • Last visited

About theboyler

  • Rank
    Newbie

Contact Methods

  • Twitter
    @theboyler
  • Website URL
    http://daveboyle.net

Profile Information

  • Location
    Brighton
  1. I had a workflow in Alfred 3 that opened the color picker; it worked in Alfred 3 but not in Alfred 4. It was a simple keyword 'col' to an applescript with this code on alfred_script(q) choose color end alfred_script Now, when I run it, nothing happens. I debug the script, and I get: [13:37:26.910] Color Picker[Keyword] Processing complete [13:37:26.913] Color Picker[Keyword] Passing output '' to Run NSAppleScript Is there some additional setting I need to use?
  2. 1) Switch on the reminder syncing service inside Daylite by installing the profile 2) Just use any of the workflows to add events to reminders, and choose the reminder calendar to be 'Worklist'
  3. You know when you go to empty trash, and it says that there's a file you're trying to delete which is in use. Sometimes, that's fine because it's a document you've inadvertently trashed. Other times, it's down to the vagaries of, say, Mail where you've just attached it to a sent message like a screengrab to send to a tech support, and you no longer need the file. This workflow runs through the trash, and lists which files are being used and by what application. You can then either force empty via a command, or go back and quit the apps, then you can empty trash in the dock. NB - You'll need to add your password into the workflow script where the variable 'thepass' is declared to make the force empty trash command work.
  4. Have combined into a single workflow here
  5. Hi Benzi - would it be possible to amend this so that when you select the computer battery, you get all the info from your first battery workflow (cycle count , health etc)?
  6. I've amended this on my Alfred to allow a modifier after the date to choose whether to add the event directly, or to open Fantastical to review first. set str to q as string set AppleScript's text item delimiters to " " as string considering case set len to str's last text item's length end considering set AppleScript's text item delimiters to "" set theend to text ((-(" "'s length) - len) + 1) thru -1 of q set q to text 1 thru (-(" "'s length) - len) of q if theend does not contain "rev" then tell application "Fantastical" to parse sentence q with add immediately else tell application "Fantastical" to parse sentence q end if If you add 'rev' after the text for the new event, you can review in fantastical first; if rev doesn't appear, then the event is added directly. To change the default, change the line if theend does not contain "rev" then to if theend contains "add" then and use the phrase 'add' afterwards to force it be added directly.
  7. This workflow enables you to quickly change the mac's output. It requires Audiodevice to be installed. You need to edit the script code to change the names of the respective devices to whatever the name of the devices on your setup; if those devices have spaces in, remember to escape them using backslashes (you can get the names of the devices by using the command 'audiodevice output list'. Download here.
  8. This workflow enables you to quickly prepare your laptop for flying by turning off your airport card and bluetooth - keyword is AP, then ON or OFF Download here
  9. So I've made two workflows for interrogating Calendars. For both, its best to use the format DD MMMM YYYY The first just opens Calendar on the date you enter, in the view you want. To use, just enter the keyword, followed by the date, then optionally, the view, eg: goto 20 december 2013 Opens the Calendar app on that date, in the existing view goto 20 december 2013 month Opens the Calendar app on that date, in month view (substitute month for week / day) Download here The second take the date, and enables you to select the number of days either side to display events around it using large type, eg: around 20 december 2013 Will list the events 7 days either side of the date. around 20 december 2013 3 Will list events 3 days either side. Read the read me for this one - it needs you download and install icalbuddy to query the calendars, and then you need to use icalbuddy to select which calendars you want to refer to by changing the -ic XXXXXXXXXX to the UIDs of the calendars in question. Download here.
  10. Thanks Tyler... Have added that and since amended the script to take a modifier for number of days before and after the date you give you give for events. It's here for download.
  11. I've made a workflow which takes the date you enter in alfred and queries my Calendars and returns the events between 7 days before and 7 days afterwards. I'd like to pass the returned text back to Alfred to display in the window, but I don't know how. Can anyone help? My script, for the record, is: on alfred_script(q) set q to date q do shell script "/usr/local/bin/icalBuddy -ic 1ED62DCA-ADC7-4A4C-A6B0-52EDB3342B87,92C54AEB-97CA-4300-A646-406457ABA32C,C36069C2-6937-4F43-9FC7-31D7DF221BFE,EBE1CD9A-2CDF-4163-AEF2-F70F845FB43E -iep \"title,datetime\" -sc -sd eventsFrom:\"" & (q - 7 * days) & "\" to:\"" & (q + 7 * days) & "\"" end alfred_script
×
×
  • Create New...