Jump to content

afordturtle

Member
  • Posts

    16
  • Joined

  • Last visited

Posts posted by afordturtle

  1. I am trying to create an Alfred workflow that will open a set of folders as finder tabs. I understand that I need to use a script to achieve this.

     

    I located this previous forum thread, but I'm unable to figure out how to modify the script so it only opens the folders as tabs (not tabs and windows): 

     

     

    Thank you in advance for any help that anyone can provide!

     

  2. Here is the whole workflow I am trying to create. It works as follows:

    1. Takes an already created template folder, copies it to the Desktop, and renames it to the query with "Catalog - " in front of it.
    2. Then creates a new folder on the desktop with the query as the folder name, and four sub folders within.

    All of this works great, aside from when the template folder is created and renamed, it inserts "\" in front of where spaces appear in the query. Here is the workflow script...and also a screenshot showing it and the folder output below.

     

    In this example, the query "123 Test" was used.

     

    cp -a "$HOME/Dropbox (Personal)/Aaron Riddle Photography/Lightroom Settings/Catalog Templates/Catalog - Aaron Riddle Photography Template" "$HOME/Desktop/"
    
    mv "$HOME/Desktop/Catalog - Aaron Riddle Photography Template" "$HOME/Desktop/Catalog - {query}"
    
    cd $HOME/Desktop; mkdir {query}; cd {query}; mkdir Originals; mkdir Finals; mkdir Blog; mkdir Release;

     

    Screen Shot 2020-08-24 at 12.38.24 PM.jpg

  3. Wow thanks for the help! I appreciate it! One last question...how would I adjust the second argument to append a constant prefix (for instance "Job Log" to the front of the folder name prior to {query}? So if my query was "Test Folder"...it would create the folder as "Job Log - Test Folder".

     

    Something like this (which doesn't seem to work):

     

    mv "$HOME/Desktop/[folder name]" "$HOME/Desktop/Job Log - {query}"

     

  4. Hi. I'm trying to create a workflow that renames a folder on my desktop called "Catalog - Aaron Riddle Photography Template" to the current contents of my clipboard. 

     

    1. I begin the workflow with a query to input.
    2. The input is copied to my clipboard contents.
    3. However, when I try to execute the following script to rename the folder, it doesn't work:
    mv '/Users/aaronriddle/Desktop/Catalog - Aaron Riddle Photography Template' '/Users/aaronriddle/Desktop/{query}'

    Note if I use that script and change the name of the file to a generic name, like "Test Folder", it works:

    mv '/Users/aaronriddle/Desktop/Catalog - Aaron Riddle Photography Template' '/Users/aaronriddle/Desktop/Test Folder'

    So is {query} the right thing to use here? Screenshot also attached.

     

    Thank you for any help you can provide!!!

    Screen Shot 2020-08-23 at 6.52.54 PM.jpg

  5. I have a workflow where I copy 6 different lines of text and then paste them into 6 different browser fields. I am trying to write an Alfred workflow using Applescript to do this for me automatically.

     

    Therefore I need to copy the six different lines of text, invoke the workflow, so that it:
     

    1. Invokes the Alfred clipboard history viewer.
    2. Paste the sixth entry.
    3. Tabs to the next field.
    4. Repeats....

     

    I have this script so far which invokes the Alfred clipboard history viewer, but the next "System Events" line in which command-6 keyboard shortcut is executed still targets the browser....and not the Alfred clipboard history viewer prompt window:

     

    tell application "System Events"
    	keystroke "v" using {command down, option down}
    end tell
    
    tell application "System Events"
    	keystroke "6" using {command down}
    end tell

     

    I tried targeting the app itself "Alfred 4" like below, but it does nothing:

     

    tell application "System Events"
    	keystroke "v" using {command down, option down}
    end tell
    
    tell application "System Events"
    	tell application "Alfred 4" to activate
    	keystroke "6" using {command down}
    end tell

     

    Can someone help? Thank you!

  6. Hi. I'm looking to create an Alfred workflow that copies a template folder from its location in Dropbox to my Desktop. The folder path to be copied is follows:

    /Users/aaronriddle/Dropbox (Personal)/Aaron Riddle Photography/Video/Virginia Elope Video Template

    I want to copy it to my Desktop path as follows:

    /Users/aaronriddle/Desktop

    I tried doing this via terminal using the below script:

     cp -a /Users/aaronriddle/Dropbox (Personal)/Aaron Riddle Photography/Video/Virginia Elope Video Template. /Users/aaronriddle/Desktop/
    

    However, it gives me the following error:  

    zsh: no matches found: (Personal)/Aaron

    Can someone point out what is wrong with the terminal script, OR suggest if there is a better way to do this? 

     

    Thank you for your help!

×
×
  • Create New...