Jump to content

salmone

Member
  • Posts

    15
  • Joined

  • Last visited

Posts posted by salmone

  1. What does Alfred's debugger say?

    When I select an image and hit the shortcut I get: 

     

    ERROR: action.script] ./call_with_finder_selection.applescript:1120:1121: script error: Si attendeva fine linea, ecc. ma è stato trovato “"”. (-2741)

    (in english it is saying that it was expecting end of the line but it found “"”)

  2. Glad to know!

     

    There used to be no easy way, no. However, with Alfred 3, why not? Download the newest version, and you’ll be able to change the directories via the two Workflow Environment Variables.

     

    Thanks Vitor, I downloaded the latest version and I'm trying to find out how to change the "workflow environment variables"

    I'm reading this http://www.alfredforum.com/topic/8939-workflow-environment-variables-questiongiulio/

    but I guess it is not a super simple thing to do..

  3. this workflow is great, thanks!!
     
     
     
    It’s very similar to the previous solution, only now you’ll look for the line
     
    python youtube-dl --quiet --output "${downdir}/%(title)s.%(ext)s" "${link}"
    
    and change it to be
     
    python youtube-dl --quiet -f 22/18/17 --output "${downdir}/%(title)s.%(ext)s" "${link}"

     

    Are these instructions to download mp4 still up to date?  I can't find where I have to change this setting..

     

  4. yup! thanks Vitor, I was able to achieve it, I did like this:

     

    tell application "iA Writer"

    activate

     

    end tell

     

    delay 0.2

     

    tell application "System Events" to keystroke "n" using {command down}

     

     

    I added the delay because I saw that without it often it was performing the cmd N when the active application wasn't IA writer yet, 

    it seems to work really well, I'll test if everything keeps working fine in these days

  5. I saw that the method I used is not working well, often it gives me an error. I tried looking in the script dictionary, but the app doesn't have a command do create a new document, the only things showing up are:

     

    windown : A window.

    elements

    contained by application.

    properties

    name (text, r/o) : The title of the window.

    id (integer, r/o) : The unique identifier of the window.

    index (integer) : The index of the window, ordered front to back.

    bounds (rectangle) : The bounding rectangle of the window.

    closeable (boolean, r/o) : Does the window have a close button?

    miniaturizable (boolean, r/o) : Does the window have a minimize button?

    miniaturized (boolean) : Is the window minimized right now?

    resizable (boolean, r/o) : Can the window be resized?

    visible (boolean) : Is the window visible right now?

    zoomable (boolean, r/o) : Does the window have a zoom button?

    zoomed (boolean) : Is the window zoomed right now?

    document (document, r/o) : The document whose contents are displayed in the window.

    responds to

    close, print, save.

     

     

    documentn: A document.

    elements

    contained by application.

    properties

    name (text, r/o) : Its name.

    modified (boolean, r/o) : Has it been modified since the last save?

    file (file, r/o) : Its location on disk, if it has one.

    responds to

    close, print, save.

     

     

    I tried with this:  

    tell application "iA Writer"

        activate
        make new document
    end tell

     

    but it is not working.. 

     

    then I tried with this: 

     

    tell application "iA Writer"

             activate

             keystroke "n" using {command down}

    end tell

     

     

    but it isn't working.. if somebody has any suggestion.. 

  6. thanks for the suggestion Vitor, not having any scripting knowledge I managed to solve it doing like this: in automator I recorded the action that I was doing, -open the app and click on new file. Then in alfred I created a shortcut to play the automator actions. 

    It works, though I'm sure that there are better ways to do that

  7. Hey Vero, thanks a lot, I added the locations you used in the workflow to the search scope and it is now working fine, evernote notes appear in every search!

     

    Yes evernote's database structure it's not super clear. In my case it seems that part of the notes are in ~/Library/Application Support/com.evernote.Evernote and another part in ~/Library/CoreData/com.evernote.Evernote..  by the way adding this last location to the scope fixed also the notes in the first one (that were not appearing even if already in search scope) and it seems that all notes are showing up correctly in searches

     

    Thanks!

  8. Hi Vero, 

    thanks for the answer, I tried what you suggested me (adding "com.evernote...." in the scope) but it keeps behaving the same way,

    Through alfred search I can't see any evernote note even if I try with "find" or "in"; instead in spotlight they are showing up, spotlight is even finding notes if I query the word I used for tagging them. It's strange, isn't it? I think alfred should be able to get the same spotlight results. I tried restarting the mac but it didn't change it.

    By the way I'm on mac osx 10.10.5

  9. Hi, 

    I'm trying to create my first workflow; basically I assigned a shortcut key to open an app; ok that worked..

    now I would like to add one step, after opening the app I would like the system to perform "Cmd+N", to create a new file in the app that I just opened.

     

    So basically it would be: I press a shortcut key and alfred would open the app and create  a new file.

     

    Is this possible, or there is maybe a better way to do that instead?

     

    sorry for the really really newbie question, if you have any suggestion about that it would be great anyway

  10. Hi guys,

     

    I just started using alfred yesterday and I like it a lot! there's one thing that I'm not sure why is not working as I would expect.

     

    If i got it right alfred uses spotlight "data" to search files in the compuer, but if I search through spotlight I'm seeing evernote notes as result of the search too. Instead in alfred they are not showing up.

     

    I saw and i already tried the evernote workflow posted in the forum, it is working great;  just wanted to know if I can have the same result as in spotlight (so that i would be able to search through evernote notes and other files within a single search if I need it.

     

    Thanks

    Simone

×
×
  • Create New...