Jump to content

Cedric

Member
  • Posts

    42
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by Cedric

  1. Hello,

     

    Some context

     

    I often deal with folder structures like this:

     

    top_project_folder

        section1_subfolder1

                filename_a.png

                filename_b.png

        section1_subfolder2

                filename_a.png

                filename_b.png

        section2_subfolder1

                filename_a.png

                filename_b.png

        section2_subfolder2

                filename_a.png

                filename_b.png

      

    And I need to transform them into this:

     

    top_project folder

        section1_subfolder

                filename_a.png

                filename_b.png

                filename_c.png

                filename_d.png

        section2_subfolder

                filename_a.png

                filename_b.png

                filename_c.png

                filename_d.png

     

     

    I'm not a programmer, so I set up an Automator workflow which allows me to select multiple folders, rename the files inside sequentially, then put these files into a new folder. There are three interactive prompts:

     

    • one asking for the name of the project, stored in a variable folder
    • one showing a Finder window, allowing me to select folders (in my example above, I would select section1_subfolder1 and section2_subfolder2)
    • one asking for a number to append to the created folder, which will be in the form of projectname_section[number].

     

    I made this into an application, that you can download here: link

     

    So far no problem, I can launch the app from alfred without issue

     

    The problem.

     

    The problem is when I try to shorten the process by passing the argument in Alfred to the Automator script:

    automator -d folder={query} /Users/Newbie/Documents/Scripts/folder_cleanup_alfred.workflow;
    

    The app was converted into a workflow format beforehand, where I had deleted the prompt to enter the value of the variable folder, as it's managed by the argument in Alfred. The workflow is here: link

     

    Two issues:

    • The process opens a Terminal window, which is not cool as it doesn't close on its own
    • The paramater is passed to the script (as shown by the Terminal window), but Automator tells me that the argument is incorrect.

     

    The other problem

     

    I tried to use AppleScript, to get more flexibility, but the process of opening an interactive Finder window to select multiple folders is way above my head, and copy-pasting this solution doesn't do anything for me. So I got stuck at this point.

     

    I have a preference to an AppleScript solution, because it doesn't open the Terminal, but if you can show me how to successfully pass an Alfred argument to the Automator wokflow bash command, that would be already great!

     

    I hope it was clear enough.

     

    Thanks

  2. Hello,

     

    Sorry if this question has been posted before, but how do I make the transition between non packal workflows and packal workflows ?

    Do I have to delete all the old ones and redownload them from Packal ?

     

    Thanks.

  3. How would this work?  Would you want the top hit for the search term(s) from each database?  Or multiple results from each? 

    Hello,

     

    Because you can't see many items in the alfred windows, I'd suggest to add parameters.

    If I type :

    Academic --> results from all databases sorted by relevance

    Academic Jstor --> results from Jstor sorted by relevance

    Academic Zotero --> results from Zotero sorted by relevance

    Academic Cairn --> same thing here

     

    etc.

     

    But I'm not a developper, so there may be drawbacks to this way of thinking. For example, querying all databases should add some delay, but I don't know how much. In the linux version, the delay is bearable.

     

    Thanks for answering.

     

    Cheers.

  4. Hello,

     

    I'm a user of Ubuntu as well, and I've been impressed by a Unity lens which allows to look into different academic databases (PubMed, JSTor, Google Scholar) directly via a simple search in the Unity Dash.

    Even better, you can search in your local Zotero database.

     

    https://plus.google.com/105012666183155576119/posts/ZmvMZBzTsH2

     

    Could it be possible to reproduce this behaviour with an alfred workflow ? It would save me and many others a lot of time.

    Thanks.

  5. Hi,

     

    When you mean double quote, you mean (") right ? Because, now the behaviour is the opposite as what it used to be.

    I used to have to enter 'hello world', else the voices wouldn't load (it would be stuck on keep loading).
    Now I have to enter "hello world", as the voices won't load with a single quote.

    If I try "I don't know", it will go fine until the ('), then i alfred will display the default search fallbacks instead of the voices.

     

    Is it the expected behaviour?

  6. Never used the text-to-speech of my mac, but I believe it will be useful to make sure of the pronounciation of English words (I'm not a native speaker).
    Plus, there are fun voices to pick :)

     

    Thanks for that !

     

    Edit : I noticed that it's necessary to use a simple quote (') to spell more than one word. Without quotes or with double quotes (") it doesn't work.

    Edit2 : would it be possible for the worflow to remember the last used voice, and put it in first choice?

  7. Can you please test search with this new version (beta)? Download

     

    I did, and I didn't notice much change comparted to the previous version.

    I still can't preview the note like in spotlight, and it still hangs a few seconds, sometimes showing an set of note before switching to another.

    I think it doesn't correctly recognize text with special accents like "maïs" (corn in French).

  8. Hi, this is a great extension. What would really improve my worflow, though, is to have an option in alfred to "send to a favorite folder".


    For example, I don't use droplr or anything because I don't use screenshots often enough.
    But I do have a hotkey to launch the desktop folder in alfred, which allows me to execute an action on the screenshot I just did.

     

    From there, I  use "move to", and alfred is clever enough to offer me to choose between recently used folders.

    But having the option to "move to favorite" would allow me to choose only between the folders I systematically move files to, without being limited to the ones I used recently.

     

    Thanks for your work.

    Cheers.

×
×
  • Create New...