samlimster
-
Posts
4 -
Joined
-
Last visited
Content Type
Blogs
Gallery
Downloads
Events
Profiles
Forums
Articles
Media Demo
Posts posted by samlimster
-
-
Ah.. thanks for the reply, @deanishe
I just saw another thread where they said that spark doesn't support applescript.
-
Hi folks.
I'm totally new to scripting and was trying to create a script that turns on Do Not Disturb for a set number of seconds and then turns it off. The number of seconds would be passed in as an Alfred argument.
I have the script mostly done and working, but the last part is figuring out how to pass in the argument. Can someone please help me?
Here's what I have so far:
on run argv delay 3 tell application "System Events" option key down delay 0.1 tell application process "SystemUIServer" try tell (every menu bar whose title of menu bar item 1 contains "Notification") click (1st menu bar item whose title contains "Notification") end tell end try end tell option key up end tell delay ****[the argument from Alfred]**** tell application "System Events" option key down delay 0.1 tell application process "SystemUIServer" try tell (every menu bar whose title of menu bar item 1 contains "Notification") click (1st menu bar item whose title contains "Notification") end tell end try end tell option key up end tell end run
Any help would be greatly appreciated!
Thank you!
-
Hi folks.
I'm curious as to how to set this up as well.
I'm using Spark as my default email client and would love to be able to select a file in finder and email it off using alfred's Actions.
I looked in my plugins folder and there are no bundled plugins for my alfred 3 installation.
Thank you!
sam.
Pass an argument into an applescript
in Workflow Help & Questions
Posted
Thanks, @deanishe,
That's all I needed to know. This worked perfectly.