Jump to content

realliyifei

Member
  • Posts

    17
  • Joined

  • Last visited

Posts posted by realliyifei

  1. Thanks for recommendation. Two quick questions:

     

    1. If my workflow contains both action and no-action component (both can work individually), can I use both `Run Script` and `Script Filter`? As showed below:

     

    image.thumb.png.099a6f89a238af6e87d0c6451e19d15e.png

     

    2. Just double check that I don’t need to fill anything on the boxes (keyword, placeholder title, …) and also the variables set below are correct?

     

    image.thumb.png.7460667dc073f29c012f28de6403a0d1.png

  2. I’m creating a workflow that only contains apple script like this,

    image.png.c4625650a73bcae71aac34e993d51693.png

     

    Is there anyway to notify subscriber the update of this workflow in the future? 

     

    Note that I know how to notify the update by bundle ID via python script. However, here it’s just bundle id so I’m not sure whether it would work the same way, and neither do I know how to test the auto-update since I update my workflow in the local Alfred workflow console first.

     

    image.thumb.png.dd31d6cb6f11660097530e1a0e400bae.png

  3. Thanks! I switch to Run Script now. But I fail to figure out how to set the app env var in the Alfred for conditional action?

     

    Here’s my workflow demo:

     

    image.png.a574d7dfa6b9875176e3ac6f2fa90ba3.png

     

    image.thumb.png.68babb2b9d6106037819694995fafc87.png

     

    with the apple script

    -- Safari
    tell application "Safari"
    	set tab_idx to index of current tab of front window
    	close (every tab of front window whose index is not equal to tab_idx)
    end tell
    
    -- Chrome
    try
        tell window 1 of application "Google Chrome" to ¬
            close (tabs 1 thru (active tab index - 1))
        tell window 1 of application "Google Chrome" to ¬
            close (tabs -1 thru (active tab index + 1))
    end try

    ```

  4. I’m creating a workflow of the same function w.r.t. different browsers depending on which browser is being used, so I set the same hotkey for the links between browser apps and their corresponding AppleScripts.  It can work though the workflow highlights the hotkey is overlapped, so I’m wondering is there any better solution?

     

    Note that we cannot link one hotkey to two AppleScripts here otherwise it will work on two browser apps simultaneously, which is unnecessary.

     

     image.png.be56fc56b4634e7c9e5b8f6a3893ad25.png

  5. I can get the markdown-format link from browser, like

     

    [Outer space - Wikipedia](https://en.wikipedia.org/wiki/Outer_space)

     

    and it’s convenient to paste to markdown supporting app like Typora, as 

     

    Outer space - Wikipedia

     

    but some apps, like Words and OneNote, don’t support the format. After pasting, it shows as the original code. 

     

    Is there any workflow can do this conversion automatically by shortcut? 

     

    In other words, when I have the markdown-format link in my clipboard and press the shortcut in Words or OneNote, a hyperlink-with-text would be generated in my notes.

  6. 1 hour ago, deanishe said:

    It will work, but I wouldn’t do it that way. I think it’s better to show the user that an update is available and let them trigger the update. If the workflow automatically triggers the update, it's not clear to the user what's happening.

     

    Good idea. I update it as showed below! 

     

    Probably the last two questions:

     

    1. Should I add “valid = False” here? It’s not the case from your link but from your repo.

     

    2. Should I put the update module in the position of 1 or 2? Or both are fine? Because the example given in your link and repo is a bit different.

     

     

    image.thumb.png.321166f9412090fa7abffcaed7368ef9.png

  7. @deanishe Thank you for your reply. I looked through your link and several repos in your GitHub and finally published it on GitHub.

     

    Could you please help me to check the self-update part in the main python file? Whether I write it correctly?  It’s a very short code so won’t waste you lots of time.

     

    I also hope to confirm two things:

     

    1. If I get it right from your link, I don’t need to type `__version__ = 'x.x.x'` and `’version': __version__` in my source code if I assign the version number every time I export the alfredworkflow file (showed as below), which also modify the plist file. In this case, should I keep the version number in my source code?

     

    image.thumb.png.b33dbc36cc9fee3a30326562594beb70.png

     

    2. Is it true that up to know, the next time when I release a new version in this Github repo, my users will get the update automatically?

     

    Thank you so much! 

     

     

  8. I’m a newbie to both Alfred development and GitHub version control. 

     

    I built a new Alfred workflow called Sequential Strings Creator published on Github. 

     

    I read some documents such as "Exporting and Sharing Workflows” but still confuse about the mechanism of shared release. 

     

    That is, how should I release the next version so that other Alfred users can get it via the bundle ID?

     

    I plan to release the next version by the following steps:

     

    1. Clone the repo from Github remote to local
    2. Modify the files and fix the bugs
    3. Push the new repo back to the GitHub 
    4. Release a new version by GitHub with the corresponding alfredworkflow file

     

    Is it true that by these procedures, this new version would be received by other Alfred users who use this workflow? Otherwise, what else should I do?

     

    Also, is there any method to check whether the release is successfully received by others?

×
×
  • Create New...