Jump to content

Yuri

Member
  • Posts

    29
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Yuri reacted to jarhead in Google Chrome Tab Search (Workflow)   
    This one does Safari & Chrome (and other webkit browsers)...
  2. Like
    Yuri reacted to vitor in Super Newb Question - Creating workflow within application   
    Technically yes, but only to an extent and it’s a huge pain.
    Part of the reason all the youtube videos suck is that AppleScript itself sucks. It can only do basic stuff and makes you do so in a convoluted way that doesn’t translate well to most other languages. Simply put, most people don’t waste time trying to be proficient with it, because it isn’t worth it. You use it for what’s absolutely necessary and get out as fast as you can.
    This isn’t really the full answer to your question, but I strongly advise you to ignore AppleScript when starting out. Resources are few and its power is small. Learn another language first, and then it’ll be easier. Start by learning your shell, bash as it’s kind of a “glue” that can stick together many other apps. You can do real useful things with your files faster, and it will teach you some important concepts.
  3. Like
    Yuri reacted to vitor in Search in one site with keywords list   
    Thank you, I appreciate it.
     
     
    You simply add a sleep 1 (or however many seconds you want) line inside the loop.
     
    I’ve uploaded a new version of the workflow that adds a two second delay but also adds URL escaping (in case you ever have non-ASCII characters in your file, it will still work).
  4. Like
    Yuri reacted to vitor in Search in one site with keywords list   
    Quite simple to do, you need only loop through each line and tell them to open (when given a URL, this will open in the default browser):
    IFS=$'\n' # to prevent problems if a line has more than one word separated by spaces for line in $(cat '/path/to/file'); do   open "https://www.shutterstock.com/search/${line}" done Made it into a workflow. It uses a File Action, so select the txt file you want and pick quickopen.

    Give it a try and see if there’s something you’d like a bit differently or a more detailed explanation.
×
×
  • Create New...