Jump to content

RodgerWW

Member
  • Posts

    378
  • Joined

  • Last visited

  • Days Won

    9

Reputation Activity

  1. Like
    RodgerWW got a reaction from traladeda in Open selection with specified application   
    If I 'get' what you are asking: this is simple enough:
     
    1: Create a new workflow in Alfred by clicking on the "+" at the bottom of the workflows pane.
    2: Select "Blank Workflow"
    3: At the top right click on the "+" and select "Actions / Open file"
    4: Double click on the "Open File" box just created and drag Photoshop into the RIGHT drop area 'the default application', then save.
    5: At the top right click on the "+" and select "Triggers / Hotkey"
    6: Double click on the "Hotkey" box just created and set your desired hotkey, and under 'Argument' select 'Selection in OS X' then save.
    7: Then connect the Hotkey Box to the Open File box.
     
    Now, any file you have selected in Finder will be sent to Photoshop by hitting your hotkey combo.
  2. Like
    RodgerWW got a reaction from cage.chung in Is it possible to access Alfred's built in icons?   
    "/Applications/Alfred 2.app/Contents/Frameworks/Alfred Framework.framework/Versions/A/Resources"
  3. Like
    RodgerWW got a reaction from HymanB in Adding today’s date?   
    Hmm, One way I can think of doing this with minimal effort:
     
    Create a new blank workflow.
    Add a Hotkey Trigger, and set the hotkey to whatever you want.
    Add an Action "Run Script" leave everything default (/bin/bash) and paste the following in the Script area:
     
    date "+%y-%m-%d"
     
    Then drag a connector from the right edge of the Hotkey box to the Run Script box
     
    Now, add an Output "Copy to Clipboard" and in the blank box put:
     
    {query}
     
    then select "Automatically paste to front most app"
     
    Now, drag a connector from the Run Script box to the Copy to Clipboard box.
     
    and save
     
    NOW, when you hit your hotkey combo, the date in format {y-m-d} will be pasted wherever your cursor was last.
  4. Thanks
    RodgerWW got a reaction from Saez in Mute Mic?   
    check this out: http://superuser.com/questions/172970/hotkey-to-mute-mic-on-mac-os-x
     
    Make a new alfred workflow: Templates/Essentials/Keyword to script
     
    For the keyword, make it what you want and set arguments to "No Argument"
     
    double click on the script box and select usr/bin/osascript for the language
     
    copy and paste the code on the page mentioned by 'tkneis' into the script area, save.
     
    Now, This will toggle whatever your input is ... so, in system prefs, make sure your boom mic is set as input ... and the script will toggle it between mute and 100% each time you run it.
  5. Like
    RodgerWW got a reaction from MAB941009 in Custom list of bookmarks   
    You can create a folder anywhere on your HDD, and drag and drop urls or WEBLOC files (From Safari's Address Bar) into the folder.
     
    Create a new workflow from Templates/Files and Apps/File filter from keyword and open.
     
    Under Basic Setup of the file filter you will put the keyword you want to use to search the folder.
    Under the File Types, just drag one of the webloc files into the list area so the workflow knows it's only searching for those types of files.
     
    Under Search Scope, drag the folder you created into the file area so it knows only to search that folder.
     
    then hit save.
     
    Now, when you type your keyword with a space and * ... it will show all weblocs in a list and you can select one to open, or you could even highlight one and hit SHIFT to quicklook it right from alfred.
     
    If you type your keyword + a title you know is in there, it will show just that one ... using autocomplete and such.
     
     
    I'm sure someone with advanced knowledge can tell you how to write a script to read the bookmarks.plist file safari stores in the library folder with parsing and all that, but it's a bit advanced for me personally.
  6. Thanks
    RodgerWW got a reaction from krong in I need a workflow to open a specific url in private browsing mode for Firefox   
    You will have to use system events to type keystrokes for you.
     
    Here's the applescript:
    tell application "Firefox" to activate tell application "System Events"          keystroke "p" using {shift down, command down} -- Open New Private Window     keystroke "l" using {command down} -- Select the URL field          keystroke "http://www.hotmail.com/" & return -- Paste URL and hit ENTER      end tell Just change the hotmail URL within the quotes to whatever your URL is.
  7. Like
    RodgerWW got a reaction from mjwalfreds in Workflow to selectively quit several apps at once   
    Here is an AppleScript that polls System Events for all running apps and pops up a list for you to choose which apps to quit:
    tell application "System Events" set processList to ¬   (name of every process where background only is false) & ¬   (name of every process whose ¬    (name is "AppName") or ¬    (name is "AnotherAppName")) tell me to set selectedProcesses to choose from list processList with prompt "Select process(es) to quit:" with multiple selections allowed end tell if the result is not false then repeat with processName in selectedProcesses   tell application processName to quit end repeat end if You can select multiple apps to quit by using the ⌘ or ⇧ keys as well.
     
    Just make a new workflow and pipe a hotley or keyword into the script above.
     
    Original found HERE
  8. Like
    RodgerWW got a reaction from xilopaint in About This Mac   
    I was just going to ask if I could link to it ... DONE!
  9. Like
    RodgerWW got a reaction from nikivi in Is it possible to get a list of Services from System Preferences?   
    You MAY be able to read and parse the file:
     
    ~/Library/Caches/com.apple.nsservicescache.plist
     
    I'm not sure if it tells you which are currently active, but it lists all the services in there.
  10. Thanks
    RodgerWW got a reaction from Yuri in Open link on background, in Safari, staying on the same tab   
    Try this with AppleScript :
    set myURL to "https://www.google.com" -- Replace URL with your own or with the {query} tell application "Safari" tell front window make new tab at end of tabs with properties {URL:myURL} end tell end tell  
  11. Like
    RodgerWW got a reaction from iNinja in About This Mac   
    The most current version can now be found on GitHub with very special thanks to xilopaint for continuing and modernizing the original workflow.
    GitHub Download. 
     
     
    Below are my older versions which I will now leave AS-IS for reference:
     
    DOWNLOAD (For Alfred 2)
     
    DOWNLOAD (For Alfred 3)
     
    For those that need to see/copy info from the system.
    Just open Alfred and type "about"
     
    To RESET the workflow type "xabout"
     
    FN+ENTER will copy the selected entry to the clipboard.
    SHIFT+ENTER will paste selected entry to front most app.
     
    CTRL+ENTER will take you to Apple's support website (based on your hardware).
    OPT+ENTER will take you to Apple's hardware specifications website (based on your hardware).
     
    January 11, 2018:
     
    Updated the 'HardwareIcons.xml' to include all new hardware found/referenced for icons of machines. This brings the hardware list up to date as of macOS 10.13.2 (17C205)
    This is just for Alfred 3 and the new filename is "AboutThisMac_2018.alfredworkflow", so make sure you are running the latest. This is a rather big update in terms of hardware icon support and I apologize for not doing it sooner folks!
     
    September 26, 2017:
     
    Added icon and updated script for macOS High Sierra.
     
    February 1, 2017:
     
    Added Macmini7,1 to xml for icon support.
     
    August 15, 2016:
     
    Added icon and updated script for macOS Sierra.
    Made a new version for Alfred 3 removing older Operating Systems to fall in line with what Alfred 3 supports.
    I am leaving the Alfred 2 version alone for those who still want to use it, but, it does not support macOS Sierra.
     
     
    June 3, 2014:
     
    Added Yosemite Icon (also updated script) for those using the Developer Previews so the System Version line shows the correct image.
     
    July 23, 2013:
     
    Added Mavericks Icon (also updated script) for those using the Developer Previews so the System Version line shows the correct image.
     
    July 9, 2013:
     
    I found an error in a line of my workflow which on most systems is a lenient one, but on some results in the Human Readable Machine in line 1 of the results to simply not show up. The error also made the links to the support site and hardware specs site not function correctly. I have corrected this line in the workflow.
     
    PLEASE NOTE: On SOME systems, and even on the current build of Mavericks, the plist file the workflow reads from is protected in a slightly different way. This means the permissions need to be changed on the plist. I have included the Terminal instructions in the 'readme' tab of the Workflow. To access this, load Alfred Preferences, Double Click on the Workflow in the left sidebar "About This Mac", and in the window that pops up, click the Readme tab ... and read!
     
    May 16, 2013:
     
    Added Model Identifier beside system name in top row. SO for MY system it now shows "iMac 27-inch, Mid 2011 (iMac12,2)"
     
    April 17, 2013 :
     
    Fixed a couple minor issues with incorrect selectors in the script. Serial number should show now, and 'GB' after memory size will show again.
     
    Added a system check for those that have multiple computers accessing one workflow folder (thanks DJay for pointing out that not everyone has only one computer).
     
    Removed randomUID generator for items, as the latest version of Alfred2 makes it possible to NOT have to specify unique IDs. SO, if you want an ordered list, please update Alfred to 2.0.3+
  12. Like
    RodgerWW got a reaction from cands in Yosemite Dark Mode Toggle (With Alfred Theme Toggle)   
    DOWNLOAD: Yosemite GUI Mode Toggle Workflow
     
    With either a shortcut or hotkey you can toggle between normal and dark mode in Yosemite AND thanks to the recent Alfred update, the Alfred Theme!
     
    To make the workflow universal this switches between the Yosemite themes included with Alfred 2.
     
    To change to your own "Normal" and "Dark" Alfred themes, be sure to modify the script lines accordingly:
     
    For Normal Mode change the name:
    tell application "Alfred 2" to set theme "OS X Yosemite" For Dark Mode change the name:
    tell application "Alfred 2" to set theme "OS X Yosemite Dark"
  13. Like
    RodgerWW got a reaction from ArleyM in Alfred theming: Changing search field selection color   
    Normally when hovering the mouse over the search text, the themer will display "Search Text Colour."
    Holding the 'fn' key when hovering over the search text reveals "Search Selection Text Colour"
  14. Like
    RodgerWW got a reaction from nikivi in Can you make a web search for Alfred Forums?   
    Try:
     
    http://www.alfredforum.com/search/?&q={query}
     
    as your Search URL
     
     
  15. Like
    RodgerWW got a reaction from xilopaint in Changing keyboard input   
    You can also do this with a built-in OS X shortcut:
     
    http://osxdaily.com/2014/10/08/change-keyboard-language-shortcut-mac-os-x/
  16. Like
    RodgerWW got a reaction from liatmgat in Help Me Make a Workflow | Display File Size in Large Type   
    First, create a new workflow (BLANK)
     
    From top right hit the + button and select "Triggers" - "Hotkey"
    Double click the hotkey trigger, and set your hotkey
    Then for Action, select "Pass through to workflow"
    Then for Argument, select "Selection in OS X"
    Click Save
     
    Again click the + at the top right and select "Actions" - "Run Script"
    Double click on the Run Script and for language select "osascript (AS)"
    Deselect all the Escaping options.
    In the script area paste the following:
    tell application "Finder" set selectedItem to (item 1 of (get selection)) set informationList to {} copy ("Size: " & size of selectedItem & " (" & physical size of selectedItem & ")") to end of informationList end tell Then Save
     
    Then again, click the top right + and select "Outputs" - "Large Type"
     
    Finally connect the Hotkey to the Run Script, and then the Run Script to the Large Type.
     
    NOTE: There are many ways of getting file info, the above shows the exact file size and size on disc as shown when simply using CMD + I on a file.
  17. Like
    RodgerWW got a reaction from multicolor in open finder folder as tab ??   
    Seems to work perfectly for me.  Thank You multicolor!
  18. Like
    RodgerWW got a reaction from glow259 in HOW DO I CHANGE MY PASSWORD? TY   
    Click on your name at the top of the page and select "My Settings"
    Then on the page that loads select "Email & Password"
     
    Type in your old info, and then new.
  19. Like
    RodgerWW got a reaction from Subject22 in Yosemite Dark Mode Toggle (With Alfred Theme Toggle)   
    DOWNLOAD: Yosemite GUI Mode Toggle Workflow
     
    With either a shortcut or hotkey you can toggle between normal and dark mode in Yosemite AND thanks to the recent Alfred update, the Alfred Theme!
     
    To make the workflow universal this switches between the Yosemite themes included with Alfred 2.
     
    To change to your own "Normal" and "Dark" Alfred themes, be sure to modify the script lines accordingly:
     
    For Normal Mode change the name:
    tell application "Alfred 2" to set theme "OS X Yosemite" For Dark Mode change the name:
    tell application "Alfred 2" to set theme "OS X Yosemite Dark"
  20. Like
    RodgerWW reacted to rice.shawn in Applescript doesn't function properly when called from Bash   
    It works just fine for me from bash.
     
    All I did was copy/paste the snippet in the OP into a file called test.scpt. I opened iTunes, pressed play on the first track (which, apparently is a Ke$ha track... don't ask). Then, in iTerm I entered the command `osacript test.scpt`, and iTunes paused just fine.
     
    But, let's get a bit more specific. To create the script, I did `nano test.scpt` from in iTerm and copy/pasted there.
     
    As a curiosity, I tried it again by saving it through Script Editor as `test2.scpt`. The script would work correctly when run from Script Editor, but it wouldn't work via the Bash command. So I can reproduce your problem that way.
     
    So there has to be a problem with the way that Script Editor is saving that particular script. When I `cat test.scpt`, then I see the script. When I `cat test2.scpt`, then I get the binary version of the script (garbled text). The size difference is 
    staff 1952 Mar 4 11:45 test2.scpt staff 163 Mar 4 11:35 test.scpt So, 163 bytes vs 2kb. Weird, right?
     
    So, I propose a work around: save the script as plain text rather than as a compiled binary script file. While the latter should work, something is making it not work.
  21. Like
    RodgerWW got a reaction from Subject22 in Applescript doesn't function properly when called from Bash   
    I did actually test your method using a scrpt file from terminal and you are NOT crazy!
  22. Like
    RodgerWW got a reaction from rice.shawn in Create Hotkey to Paste Color Data   
    For TextEdit it's fairly easy:
     
    1: Create a new blank workflow
    2: Add three hotkey triggers, one for each color you want
    3: Add three RunNSApplescript Actions, again, one for each color.
     
    Now, in each of the RunNSApplescript Action boxes, you will want to paste this:
    on alfred_script(q) tell application "System Events" to tell text area 1 of scroll area 1 of window 1 of process "TextEdit" to if exists then set {x, y} to value of attribute "AXSelectedTextRange" if x ≤ y then tell application "TextEdit" to set color of document 1's characters x thru y to {65535, 0, 0} end if end alfred_script NOTE:  That I also copied the included 'alfred_script', so if you just copy and paste the above into the window, make sure you overwrite the others already in there.
    ALSO NOTE:  The color in brackets for the above is RED as the format is {RED, GREEN, BLUE} and the initial value is all red, and zero green and blue.
    For the green NSAppleScript {0, 65535, 0},
    For the blue NSAppleScript {0, 0, 65535}
     
    Then, connect your hotkey boxes to the appropriate NSAppleScript Boxes.
  23. Like
    RodgerWW got a reaction from Vero in Volume Control Has Black Behind Corners   
    "There are no stupid questions..." Get out from under your rock now!
  24. Like
    RodgerWW got a reaction from Andrew in Volume Control Has Black Behind Corners   
    "There are no stupid questions..." Get out from under your rock now!
  25. Like
    RodgerWW got a reaction from gammawert in Yosemite Dark Mode Toggle (With Alfred Theme Toggle)   
    DOWNLOAD: Yosemite GUI Mode Toggle Workflow
     
    With either a shortcut or hotkey you can toggle between normal and dark mode in Yosemite AND thanks to the recent Alfred update, the Alfred Theme!
     
    To make the workflow universal this switches between the Yosemite themes included with Alfred 2.
     
    To change to your own "Normal" and "Dark" Alfred themes, be sure to modify the script lines accordingly:
     
    For Normal Mode change the name:
    tell application "Alfred 2" to set theme "OS X Yosemite" For Dark Mode change the name:
    tell application "Alfred 2" to set theme "OS X Yosemite Dark"
×
×
  • Create New...