Jump to content

Hileotech

Member
  • Posts

    8
  • Joined

  • Last visited

Hileotech's Achievements

Helping Hand

Helping Hand (3/5)

1

Reputation

  1. @ juliosecco: the I tried to run the PlistBuddy command you pointed me out (of course I modified it accordingly to my username and "LONGSTRING" thing), but the only thing I got from terminal was a Print: Entry, "dndStart", Does Not Exist both with Notification center on and off. I "quick-viewed" the "LONGSTRING" plist file, and I discovered that it does change according to Notification Center status. See this: Do Not Disturb OFF: after all the "xml version" etc code, <dict> <key>doNotDisturb</key> <false/> </dict> Do Not Disturb ON: again, after the "xml version" etc, <dict> <key>doNotDisturb</key> <true/> <key>doNotDisturb</key> <date>2016-06-07T07:46:16Z<date/> </dict> That's why running your command in terminal I just had a "Doesn't exist" answer... Anyway: I just have to ask Alfred to check if DND is "true" or "false"...
  2. Thanks deanishe and thanks juliosecco for your answers. I agree with deanishe: I used a separate script file just because I found different solutions for toggling Notification Center and it was easier for me to work on a separate file than to edit workflows. But this led me to use terminal and so to make my workflow heavier... Thanks for your suggestion! I'll investigate deeper with the "LONG_STRING" file. As far as I can imagine I just should ask Alfred to check IF dndStart and dndEnd exist THEN DoNotDisturb is "on", ELSE it's off... So my next step is to use this result as a variable in my workflow and ask Alfred to act consequently. Am I wrong, juliosecco? (Thanks for your hints!)
  3. Thanks, deanishe! I ended up doing like this: 1. I created an Apple Script file (named dnd.scpt) and saved in Documents ignoring application responses tell application "System Events" to keystroke "D" using {command down, shift down, option down, control down} end ignoring 2. I setup a keyboard shortcut in System Preferences according to the code above, shortcut that enables/disables (i.e. toggles) Notification Center 3. In Alfred workflow I created a new "Terminal Command" event, in which osascript /Users/**USERNAME**/Documents/dnd.scpt osascript -e "tell application \"System Events\" to keystroke \"q\" using command down" the last line simply asking Terminal to quit after doing its script call I'm quite satisfied with it, even because it's my very first workflow and I never coded before... Your suggestion really helped me! PS: next step: I don't want to simply change notification center status, but I would like to setup a status (on or off) for each mode I decide to activate... Hope to find a solution...
  4. Updates... Googling here and there I found this page from stackexchange: http://apple.stackexchange.com/questions/145487/how-to-enable-disable-do-not-disturb-from-shell-on-mavericks There are a couple of scripts/codes ready-to-use, but I have no idea on how to use them i Alfred. Anyone could help in this? Thanks!
  5. Hi, everybody! I was just wondering to find a way to create some "desktop modes" I can easily switch using shortcuts/hotkey/whatever. For instance, I created a "Presentation Mode" that 1) quits all opened app(s) 2) opens DevonThink Pro Office (my research database) 3) sends a notification (i.e.: "Presentation mode: ON") Basic, super-simple workflow, I know, but it just works! I would like to add a little more to this, by enabling "Do Not Disturb" (DND) when in "Presentation Mode" and disabling it when exiting this mode (I create a "Pure Desktop" mode that recreates desktop environment as after a reboot). I googled here and there, but I can't find a (working/reliable) solution. I found some (probably) working scripts, some terminal commands, etc. Is there anyone who successfully solved this? Any help? PS: I know I can bypass this, somehow, by selecting the appropriate option in System Preferences, but anyway I would like to be able to toggle "DND" on and off whenever I want through
  6. Well: thanks for your help. I have all contacts formatted as follows: Name Surname +39 [italian international prefix] 123 4567890 I changed the rule in order to accept 12 or 13 digits. The problem, as I told you, is that Message doesn't even open... I'll try again in a few hours and report back.
  7. Hallo! Thanks for this workflow. Just a problem here: I can't figure how to send SMS... I tried the following: **A** call Alfred and write "sms [contact name]" ENTER --> nothing happens (iMessage doesn't even open) **B** call Alfred and write "sms [contact number] test message" ENTER --> again nothing happens No error message, nothing at all. Strange enough: it seems that telephone calls correctly begin... Running MacBook Pro OSX 10.11.5 + iPhone 6 iOS 9.3.3, both in italian (maybe this is the point?)
  8. Dear Kracke, I don't even know if you're still here around, but I need to thank you for your post! I think that's the way an (automated) operating system should go. Hope you can help me understanding better how you set up all those scenarios, maybe in another thread. But, anyway: great post, thanks a lot!
×
×
  • Create New...