Jump to content

kmarchand

Member
  • Content Count

    17
  • Joined

  • Last visited

  • Days Won

    1

kmarchand last won the day on September 6 2013

kmarchand had the most liked content!

About kmarchand

  • Rank
    Newbie

Recent Profile Visitors

507 profile views
  1. Weird. I worked something out. Thanks.
  2. I'm on El Capitan (10.11.3). When I run that applescript it still creates a reminder tomorrow at 12:00. When I ran this applescript, it did create it at 9am set theDate to date string of ((current date) + (1 * days)) set DueDate to date (theDate) set time of DueDate to 60 * 60 * 9 tell application "Reminders" tell list "Inbox" make new reminder with properties {name:"Test", remind me date:DueDate} end tell end tell
  3. Nice workflow! Thanks. I'm having a problem with the time not working... it gets the date right but the time is always 12:00. Here's the log; [iNFO: alfred.workflow.input.keyword] Processing output 'alfred.workflow.action.applescript' with arg 'test;tomorrow;14:00' [iNFO: alfred.workflow.action.applescript] Processing output 'alfred.workflow.output.notification' with arg 'test Due: Thursday, February 25, 2016 at 12:00:00 AM' [iNFO: alfred.workflow.input.keyword] Processing output 'alfred.workflow.action.applescript' with arg 'test;friday;09:00' [iNFO: alfred.workflow.action.applescript] Processing output 'alfred.workflow.output.notification' with arg 'test Due: Friday, February 26, 2016 at 12:00:00 AM' [iNFO: alfred.workflow.input.keyword] Processing output 'alfred.workflow.action.applescript' with arg 'test;saturday;9' [iNFO: alfred.workflow.action.applescript] Processing output 'alfred.workflow.output.notification' with arg 'test Due: Saturday, February 27, 2016 at 12:00:00 AM'
  4. For one or more specified search words, this workflow counts occurrences in the local Day One journal and shows the past week, month, year and all time totals. If no words are specified, all time totals are shown. https://github.com/kmarchand/dowcAlfredWorkflow Usage: dowc {word1} {word2} {word3} ... Kevin
  5. Thanks, good suggestion. I made the change.
  6. I found a way to open all tabs at once. Updated version here: https://github.com/kmarchand/iCloudTabsAlfredWorkflow The 'tabs' keyword works the same way and the new 'alltabs' keyword will open all links for all devices in the default browser.
  7. Hello. I've been thinking about this for a bit and just sorted it out. You can get the new version with the 'alltabs' keyword here; https://github.com/kmarchand/iCloudTabsAlfredWorkflow The previous 'tabs' keyword works the same way.
  8. Ok that's interesting. I guess the plist is using the computer name and the workflow was using the network host name to check and I forgot they could be different. I've updated it to exclude both the computer name and network host name from the list of devices. The update is posted here; https://github.com/kmarchand/iCloudTabsAlfredWorkflow
  9. I'm not sure if it's possible for a workflow to indicate to Alfred to exclude other results that are similar to the keyword... I noticed that with other workflows as well. One option is to just rename the keyword to something unlikely to appear in other file names like "ttt" or "ict" or whatever works for you. You can do that double clicking on the 'script filter' part of the workflow and changing the keyword value at the top. As far as omitting URLs from the current machine, it still works fine for me. In that same script filter window, in the 'Script' section where it shows the code, if you scroll down to near the bottom the 13th non blank line up should be; "if device_name != current_device". If that doesn't appear just above the "for tab in ..." section then it is the older version of the workflow that doesn't exclude the current device. Otherwise I'm not sure why it wouldn't work.
  10. Weird. Did you make sure the script portion in the new version in Alfred matches the new python file , to make sure it actually got updated? Other than that I can't think of much. If you want to email the XML you're getting from running it manually I can see if there's any reason that wouldn't display (keep in mind I would see your links)
  11. I think I figured out what's going on. If the plist had multiple devices, but some of the devices in the list didn't have tabs, it caused the script to fail. I just modified it to try to find the Tabs key but to keep going if it didn't find it and it seems to work for me. It should now ignore devices that don't have tabs in that list. There's an updated copy here: https://github.com/kmarchand/iCloudTabsAlfredWorkflow
  12. dfay, it sounds like it isn't finding the 'Tabs' section in the decoded plist file. That could occur if the file is in a different spot in another version of the OS. I'm using 10.8.4 (Safari 6.0.5) and the file is here: ~/Library/SyncedPreferences/com.apple.Safari.plist or more likely, if the file has a different structure for some reason. When I copy that file and then convert it to XML using "plutil -convert xml1 <copied_filename>.plist" then review the XML, mine is structured this way: changecount initalsync values + unique-id-1 + + remotevalue + + timestamp + + value + + + DeviceName: device1 + + + + Tabs + + + + + Title: title1 + + + + + URL: url1 + + + + + Title: title2 + + + + + URL: url2 + unique-id-2 + + remotevalue + + timestamp + + value + + + DeviceName: device2 + + + Tabs + + + + Title: title3 + + + + URL: url3 + + + + Title: title4 + + + + URL: url4 + [...] (one unique-id for each device) versionid All the workflow does, after copying the plist and converting it to XML, is to look for the DeviceName and Tabs tags in that XML but it expects the values -> unique-id -> value structure to be there as well. The error you got suggests it can't find the 'Tabs' key. If you can copy your plist file and convert it to XML the way I did above, let me know if that is missing or named another way. I don't have much time to troubleshoot but I'm happy to see what I can do if there's a clear cause. If you want to email me a copy of your plist file I can see if it's different and try to adjust for the variance in structure (keep in mind that I would see the open links in that file, if you want to do that). kevin.marchand@gmail.com
  13. I haven't been able to find a way to do that yet but if I do I'll make the change.
  14. Loads iCloud tabs from all connected devices and lists them as links. Current device is excluded. It works by copying the ~/Library/SyncedPreferences/com.apple.Safari.plist file to a temp location, converting to XML then parsing the result. https://github.com/kmarchand/iCloudTabsAlfredWorkflow
×
×
  • Create New...