Jump to content

James Hobson

Member
  • Posts

    8
  • Joined

  • Last visited

Posts posted by James Hobson

  1. On 4/18/2013 at 9:23 PM, guitarplayer08 said:

    What if I want the first default fallback option as the Dictionary app? Anyone knows how to set that up?

     

    So it would be Dictionary, Google, Amazon and Wikipedia

     

    Super old question but exactly what I wanted to do so here's the solution I found in case others are looking.

     

    This is on a Mac running Big Sur.

     

    Set Search URL to 

    dict://{query}

     

    Solution source:

    https://apple.stackexchange.com/questions/90040/look-up-a-word-in-dictionary-app-in-terminal

    Screenshot 2022-03-11 at 11.20.49.png

  2. @deanishe

     

    Yeah - what I want is to open certain sites on set days of week or month. Then I can run the action daily and keep track of sites I read etc..

    The `copy` command was a fluke find. Works well for this.

    This is how I've done it:

    set thisDay to weekday of (current date) as string
    set thisDate to day of (current date)
    
    set sites to {}
    
    
    -- Monday
    --
    if thisDay is "Monday" then
      
      copy "https://throttlehq.com/home" to the end of sites
    
    end if
    
    
    -- Tuesday
    --
    if thisDay is "Tuesday" then
      
      copy "http://twodollartues.com" to the end of sites
      
    end if
    
    
    
    -- 1st of each month
    --
    if thisDate is 1 then
    
      copy "http://macappdeals.com" to the end of sites
    
    end if
    
    
    -- Everyday
    --
    copy "http://macupdate.com" to the end of sites
    
    
    
    tell application "Firefox"
      
      activate
      
      repeat with site in sites
        
        do shell script "/usr/bin/open -a Firefox.app " & site
        
      end repeat
      
    end tell

     

  3. Hi all

    Is it possible to link applescript modules together so their variables pass from one to another?

    For example in the attached image - the central script module sets-up some variables which are then dealt with differently in the end-of-chain script modules.

    I've tried using {var:varname} to pass-through but it's not working...

    Is this actually possible?

    Here's an example workflow: https://www.dropbox.com/s/j52zibfpui9z0p7/multi-ascript.zip?dl=0

    Cheers

    James

    Screen Shot 2017-03-31 at 19.30.22.png

  4. Hi All

     

    I'm just getting into Alfred workflows and exploring areas of my day-to-day processes that can be streamlined with workflows.

     

    Here's my first release of a workflow for speeding up sending links from the current tab in Google Chrome to Downie (video download app).

     

    The workflow can be downloaded here:

    https://github.com/floq-design/alfred-workflows/raw/master/downie-download/downie-download.alfredworkflow

     

    Hope you find it useful.

     

    Cheers

    James

×
×
  • Create New...