Jump to content

Alec

Member
  • Posts

    2
  • Joined

  • Last visited

Reputation Activity

  1. Thanks
    Alec reacted to jdfwarrior in Run script not working while terminal command works   
    Since you are new to Alfred 2, let me explain the difference in case it wasn't already obvious.
     
    A run script (with the language set to bash) is the same as running the command from the terminal except it runs it in the background with no new windows popping up.
    Terminal command will launch a terminal window and run the command in that new window.
     
    If a command works normally in a Terminal Command item, then it should work normally as a Run Script with the language set accordingly as long as the script isn't reliant upon something in your profile settings or environment variables. Alfred doesn't import your environment so, if you have environment variables set that the script would need access to, these would need to be brought into Alfred. Also, paths in Alfred are relative to the folder that the workflow is stored in. So if you needed to access something in your documents folder, you wouldn't just use "cd Documents" assuming that you started in your home directory, you would have to specify full path to your Documents folder.
×
×
  • Create New...