Jump to content

jopemachine

Member
  • Posts

    37
  • Joined

  • Last visited

  • Days Won

    2

Reputation Activity

  1. Like
    jopemachine reacted to deanishe in What is your workflow for developing these workflows?   
    Create a new directory for your project with a "src" subdirectory. Create a new, empty workflow in Alfred. Configure the workflow's name, bundle ID, icon etc. in Alfred's UI. Reveal the workflow in Finder. Move everything to the "src" subdirectory of your new project. Delete the workflow from Alfred. Symlink your workflow from the project directory: workflow-install -s src workflow-install script.
  2. Like
    jopemachine reacted to deanishe in What is your workflow for developing these workflows?   
    I symlink my own workflows. Your code belongs in version control, not in an .alfredpreferences bundle in your Dropbox.
    So that this works cleanly, for Python, I keep the actual workflow in a src subdirectory of the repo. That way, I can symlink the subdirectory to Alfred without the .git directory ending up in Dropbox, which isn't great. Also, building the workflow is as simple as zipping up the contents of the src directory. Keeps it nice and simple. When the repo root is the same as the workflow root, you have to be careful to exclude files during building. I've seen a few workflows that contained copies of themselves that contained copies of themselves that contained copies of themselves… because the author kept the built workflow alongside the source in his repo.
    With Go, because it needs compiling anyway, I write a build script that puts the completed workflow in a build subdirectory, which can then be symlinked to Alfred or (its contents) zipped into a workflow.
    I also keep all the code in external files and use Alfred's Script boxes like a shell to call the scripts. Alfred is a terrible programmer's editor, and you lose a lot of the benefits of git etc. if all your code is embedded in info.plist.
    This has the overhead of an extra bash process, but that's about 0.01s when it isn't loading your dotfiles.
    With regard to libraries like Alfred-Workflow, I don't think they're as necessary in Alfred 3 thanks to the ease of generating JSON compared to XML (at least in scripting languages). There's a lot more to AW than just generating XML/JSON, but with Alfred 2 you basically needed a library for the XML generation alone.
    Finally, I generally write my workflows as command-line programs. If you have environment variables mapped to command-line flags, you can do some really neat stuff with workflow variables.
  3. Like
    jopemachine reacted to Vero in Consolidated Workflow List (app store)   
    @andy4222 Thanks for the kind words about Alfred
     
    There is a lot to consider in creating and, most importantly, continuously maintaining a Workflows collection, but I can assure you it's on our radar and we’ve discussed a number of different ways to implement this.
     
    While I can't say much more for now, there are some pretty special things coming this year for Alfred.
     
    In the meantime, you’ll find that searching online for “Alfred workflow [name of the app integration you want]” will likely return a few options, as our community has been so brilliant at creating workflows for their favourite tools out there! 
  4. Like
    jopemachine reacted to dfay in Alfred 5   
    Just saw the blog post and I’m wicked curious to know what this will bring!
  5. Like
    jopemachine got a reaction from syv in Alfred-evernote-workflow   
    Hi everyone,
     
    Let me introduce evernote workflow that I use.
     
    I made this workflow for adding some features that I wanted at first, and I share this with you because I think it would be much better to use it together.
     
    You can check it on below repository including demo.
     
    Repo: https://github.com/jopemachine/alfred-evernote-workflow
     
    And as for how to install, please refer the README.md of above repository. 
     
    Feature
    * Fast search using 
    * Preview feature using caching.
    * You can change your search details.
    Prerequisite
    * Evernote Client on macOS (None App-store version)
    * Node JS
     
    How to use
    ### en
    Switch to Evernote App.
     
    ### en > authtoken { Argument }
    Argument: {`Your api key`}
    This command is required only for the initial authentication process.
    This command save the token value obtained from gettoken to a file.
     
    ### en > gettoken
    This command is required only for the initial authentication process.
    The command opens Chrome to the Evernote site.
    When you log in to the site and press the authentication button, `oauthToken` is printed in json format.
    Pass the value as a argument in the authoken command.
     
    ### en > help
    Open Github link to view README.md.
     
    ### en > sync
    Sync Evernote Client.
     
    ### en > savecache
    Alfred-evernote-workflow use html cache to enable note preview feature.
    This command save html caches of all of notes from your Evernote client. 
    When the command is running, you are not able to run note searches with the `ens` command.
    In this case, the `ens` command displays the number of notes that are cached to show you progress.
    If caching is not done properly for some reason, you can use `en > clearcache` and this command to perform initial caching.
    After initial caching, the cache will be updated automatically.
     
    ### en > clearcache
    Delete all of your html caches.
    If you delete all the cache and use the `ens`, you are likely to be caught in the sdk's api call limit.
     
    ### en > clearlog
    Clean all command logs
     
    ### entodo
    Search only for notes that have check boxes.
     
    ### encl 
    Adds the text from the clipboard to the Evernote as a new note. 
     
    ### enclo
    Adds the text from the clipboard to the Evernote as a new note and Open the note. 
     
    ### enc { Argument }
    Argument: {`note content`}
    Create note by text.
     
    ### enct
    Argument: {`note title to create`}
    Search tag name and create note by the selected tag and note content if you want.
     
    ### enu { Argument }
    Argument: {`url to search with`}
    If no argument exist, search for all notes with source URL.
    Search Notes by url.
     
    ### ens { Argument }
    Argument: {`content to search`}
    Search the Evernote's notes.
    If no argument exist, search for the most recent notes (may vary depending on options)
    To change the search option, see the topic *Options.*
     
    * #### *Shift key* + <kbd>Enter</kbd>
    You can invoke the Quicklook by pressing the shift key for the `ens` search results.
    Quicklook displays the note in html format.
     
    * #### *Fn key* + <kbd>Enter</kbd>
    You can view the source URL for that note by pressing the Fn key for the search results in theens.
    And you can open the source URL by chrome by entering the item.
    If the note does not contain a sourceURL, you will receive an error notification.
     
    ### enn { Argument }
    Argument: {`content to search`}
    Search the Evernote's notes in your Trash bin.
    Note that the enter action for this command is to open the cache of the note in the Chrome browser.
    (Not your Evernote client)

    ### ent { Argument }
    Argument: {`tag name`}
    Search Evernote's tag. You can filter notes by entering on that tag.
    If no argument exist, search for all tags.
    If you select the tag, the notes with the tag will be searched.
    You can search these notes just like the `ens` command.
     
    * #### *Command key* + <kbd>Enter</kbd>
    By pressing the command key and pressing the entry, you can open the window for notes with that tag.
     
    ### enr { Argument }
    Argument: {`content to search`}
    Search only for notes that have reminder.
     
    ### enb { Argument }
    Argument: {`notebook name`}
    Search notes by Notebook.
    If you select the notebook, the notes in that notebook will be searched.
    If no argument exist, search for all notebooks.
    You can search these notes again.
     
    ### enf { Argument }
    1st Argument: {`file extension`}
    2nd Argument: {`content to search`}
    Search for notes with attachments of a specific extension.
     
    Example:
    ```
    // Search for pdf files with compiler in file name
    enf pdf compiler
    ```
     
    ### enl
    Check your command usage log.
    By selecting the corresponding log, you can execute the command.
    The maximum number of logs to be stored can be specified in Options.
    This command displays the same command only once.
    enl supported commands : `ens`, `ent`, `enf`, `enr`, `enb`, `enu`, `noteopen`, `en > sync`, `entodo`
     
    ### enx { Argument }
    Argument: {`content to search`}
    Export the retrieved note to your Desktop path as html.
     
     
     

     
  6. Like
    jopemachine got a reaction from joshuadwagner in Alfred-chrome-workflow: Search Chrome's queries, bookmarks, history and download logs   
    🌈 Features
     
    📄  Search Chrome's Visit History `(chh)` 🔖  Search Chrome's Bookmark sorted by visit counts `(chb)` 📁  Search Chrome's Bookmark folder `(chf)` 🔎  Search Chrome's Download logs `(chd)` 📜  Search Chrome's Search query history `(chs)` 🎥  Search Chrome's Media (video) history `(chm)` 📒  Search and Copy Your Chrome's Autofill data `(cha)` 📝  You can change your search config details `(ch > conf)`  
     
    You could check the workflow on the below page.
     
    https://github.com/jopemachine/alfred-chrome-workflow
     
    Any idea or feedback would be appreciated 








  7. Like
    jopemachine reacted to deanishe in alfred-squoosh   
    No. The important thing is to ask Alfred to install the workflow itself, and let it worry about all of that. The simplest and best way to distribute workflows is as .alfredworkflow files. Then all you have to worry about is identifying a newer version and downloading it. Alfred takes care of the rest.
     
    Anything else is a bit silly. Updating is difficult to do properly, sucks if you don't do it properly, and it's important to keep your update code as simple as possible because your primary bugfix mechanism is a really bad place to have bugs.
  8. Like
    jopemachine reacted to deanishe in alfred-squoosh   
    Probably worth mentioning that it's built as a Node package, not a workflow.
     
    A lot of people avoid such workflows because of all the issues the non-standard installation method causes.
  9. Like
    jopemachine got a reaction from 40-02 in Transform selected text to markdown-table or apply markdown grammar   
    Transform selected text to markdown-table or apply markdown grammar!
     
    https://github.com/jopemachine/alfred-transform-markdown
  10. Sad
    jopemachine got a reaction from Joelanalyst in Alfred-evernote-workflow   
    It seems that Evernote 10 doesn't support AppleScript anymore.
    So, the search feature itself works,(because it use sdk) but the feature to open or caching notes does not work with Evernote 10.
    (and all functions that need to AppleScript is not working.)
    I need to think about if this is feasible to implement these features without going through Apple Script..
  11. Like
    jopemachine got a reaction from Joelanalyst in Alfred-evernote-workflow   
    Thanks for sharing this.
     
    I hope that a new API for automation (including note open, exporting etc) will come out to enable this workflow again..
  12. Like
    jopemachine got a reaction from deanishe in Search for Nintendo switch game prices by country   
    I've never noticed the value is totally wrong..
     
    In 0.1.3, I changed the variable name to currency back again.
     
    And I specified possible variable names table in Github readme.
     
    Thanks for your comments again
     
  13. Thanks
    jopemachine reacted to vitor in Search for Nintendo switch game prices by country   
    There’s no two-letter EN country code in the standard, and if there were I doubt it would refer to the USA (much more likely it would be England, thus use £ / GBP). Calling the variable a country code is as confusing as calling it currency. Keep in mind that even “dollar” isn’t a single thing, other countries use different dollars with different values.
     
    I understand that two-letter code may be what they use in their (private?) API, but if it’s this confusing it might be worth having a way to clear it up, like a note or table in the About section.
     
    This Workflow looks pretty useful for those who have a Switch. If picking a currency anyway, why not have it show directly in the initial list of results?
  14. Thanks
    jopemachine reacted to deanishe in Search for Nintendo switch game prices by country   
    The value in the URL is currency, and that’s what you should call the variable.
     
    Looking at the site, "EN" isn't actually a valid value. It redirects to "GBP", which is the currency code for pounds sterling, not any kind of dollar.
  15. Thanks
    jopemachine reacted to deanishe in Universal action in workflow's script filter   
    The documentation does not say "forward". What do you mean by "forward"?
     
    Please try to use normal Alfred terminology or be more specific (e.g. "press ↩ on a result").
     
     
    The action field is the value that is passed to Universal Actions when you use Show Actions on it (hit TAB by default) instead of arg.
  16. Like
    jopemachine reacted to pseudometa in Sharing some useful simple Universal Action   
    Found the time to try out the new 4.5 release and I love it!
     
    Other than a few mentionings in the Thread on the 4.5 beta, I haven't found many showcases of the new Universal Actions feature in this forum. Maybe we could share some usecases? Here is a workflow with a bunch of (mostly simple) Universal Actions:
     
    Text Actions
    - Titlecase
    - Lowercase
    - Uppercase
    - Poor Text (removes formatting)
    - Transform Spaces to Tabs
    - Append to Clipboard (similar to Alfred's built-in function, but with manual hotkey and with universal action)
    - Calculate the sum of all numbers in the selected text. Negative numbers are supported, as are both "," or "." as decimal separators. (Thousand separators are not supported though, as they would create ambiguous cases.)
    - Run Brett Terpstra's SearchLink, which fetches the URL and creates a markdown link of the selected text.
     
    URL Actions
    - URL Encode
    - URL Decode
    - Create compact markdown link
    - Create compact markdown link of all URLs in selecting (actually a Text Action...)
    - SearchTitle: Fetch the title of the URL and create a Markdown link (basically the opposite of SearchLink)
     
    Download: https://drive.google.com/file/d/16Fnkj8wXxxNYlLTcEO-m8YHOobADLZE9/view?usp=sharing
     
     
  17. Like
    jopemachine got a reaction from cands in Alfred-evernote-workflow   
    Thanks for sharing this.
     
    I hope that a new API for automation (including note open, exporting etc) will come out to enable this workflow again..
  18. Thanks
    jopemachine reacted to Vero in Alfred-evernote-workflow   
    @jopemachine The response I got from Evernote is that it's one of the features they're still considering. While I'm not holding much hope, the more people make their interest known to Evernote (rather than just here in our forum), the more likely they'll give it some sort of priority.
     
    If AppleScript no longer works, it may be possible for a new Evernote workflow to be created using the API instead of AppleScript... 
     
    The Evernote 7 legacy version can still be downloaded here in the meantime:
    https://help.evernote.com/hc/en-us/articles/360052560314
     
    Cheers,
    Vero
  19. Sad
    jopemachine got a reaction from cands in Alfred-evernote-workflow   
    It seems that Evernote 10 doesn't support AppleScript anymore.
    So, the search feature itself works,(because it use sdk) but the feature to open or caching notes does not work with Evernote 10.
    (and all functions that need to AppleScript is not working.)
    I need to think about if this is feasible to implement these features without going through Apple Script..
  20. Like
    jopemachine reacted to deanishe in Searchio! Auto-suggestion from search engines in different languages   
    You have to set the workflow up to use it. Add some searches with searchio > All Engines ….
     
  21. Like
    jopemachine reacted to samvlu in Find Folder — Search by Folder Name Workflow   
    Find Folder
    Download here:
    http://samvlu.com/download/Find_Folder.alfredworkflow.zip
     
    Search by folder name.
    Enjoy!!
  22. Like
    jopemachine reacted to cands in Alfred-evernote-workflow   
    Thanks for looking into it. Unfortunately, the problem persists for me in 0.8.0
    I'll paste the error message below and send you the htmlCacheLog.json 
     
    /usr/local/lib/node_modules/alfred-evernote-workflow/search_content/thumbNailPath.json:1 SyntaxError: /usr/local/lib/node_modules/alfred-evernote-workflow/search_content/thumbNailPath.json: Unexpected token s in JSON at position 2924 at parse (<anonymous>) at Generator.next (<anonymous>)  
  23. Like
    jopemachine got a reaction from IOIO in Alfred-evernote-workflow   
    Hi everyone,
     
    Let me introduce evernote workflow that I use.
     
    I made this workflow for adding some features that I wanted at first, and I share this with you because I think it would be much better to use it together.
     
    You can check it on below repository including demo.
     
    Repo: https://github.com/jopemachine/alfred-evernote-workflow
     
    And as for how to install, please refer the README.md of above repository. 
     
    Feature
    * Fast search using 
    * Preview feature using caching.
    * You can change your search details.
    Prerequisite
    * Evernote Client on macOS (None App-store version)
    * Node JS
     
    How to use
    ### en
    Switch to Evernote App.
     
    ### en > authtoken { Argument }
    Argument: {`Your api key`}
    This command is required only for the initial authentication process.
    This command save the token value obtained from gettoken to a file.
     
    ### en > gettoken
    This command is required only for the initial authentication process.
    The command opens Chrome to the Evernote site.
    When you log in to the site and press the authentication button, `oauthToken` is printed in json format.
    Pass the value as a argument in the authoken command.
     
    ### en > help
    Open Github link to view README.md.
     
    ### en > sync
    Sync Evernote Client.
     
    ### en > savecache
    Alfred-evernote-workflow use html cache to enable note preview feature.
    This command save html caches of all of notes from your Evernote client. 
    When the command is running, you are not able to run note searches with the `ens` command.
    In this case, the `ens` command displays the number of notes that are cached to show you progress.
    If caching is not done properly for some reason, you can use `en > clearcache` and this command to perform initial caching.
    After initial caching, the cache will be updated automatically.
     
    ### en > clearcache
    Delete all of your html caches.
    If you delete all the cache and use the `ens`, you are likely to be caught in the sdk's api call limit.
     
    ### en > clearlog
    Clean all command logs
     
    ### entodo
    Search only for notes that have check boxes.
     
    ### encl 
    Adds the text from the clipboard to the Evernote as a new note. 
     
    ### enclo
    Adds the text from the clipboard to the Evernote as a new note and Open the note. 
     
    ### enc { Argument }
    Argument: {`note content`}
    Create note by text.
     
    ### enct
    Argument: {`note title to create`}
    Search tag name and create note by the selected tag and note content if you want.
     
    ### enu { Argument }
    Argument: {`url to search with`}
    If no argument exist, search for all notes with source URL.
    Search Notes by url.
     
    ### ens { Argument }
    Argument: {`content to search`}
    Search the Evernote's notes.
    If no argument exist, search for the most recent notes (may vary depending on options)
    To change the search option, see the topic *Options.*
     
    * #### *Shift key* + <kbd>Enter</kbd>
    You can invoke the Quicklook by pressing the shift key for the `ens` search results.
    Quicklook displays the note in html format.
     
    * #### *Fn key* + <kbd>Enter</kbd>
    You can view the source URL for that note by pressing the Fn key for the search results in theens.
    And you can open the source URL by chrome by entering the item.
    If the note does not contain a sourceURL, you will receive an error notification.
     
    ### enn { Argument }
    Argument: {`content to search`}
    Search the Evernote's notes in your Trash bin.
    Note that the enter action for this command is to open the cache of the note in the Chrome browser.
    (Not your Evernote client)

    ### ent { Argument }
    Argument: {`tag name`}
    Search Evernote's tag. You can filter notes by entering on that tag.
    If no argument exist, search for all tags.
    If you select the tag, the notes with the tag will be searched.
    You can search these notes just like the `ens` command.
     
    * #### *Command key* + <kbd>Enter</kbd>
    By pressing the command key and pressing the entry, you can open the window for notes with that tag.
     
    ### enr { Argument }
    Argument: {`content to search`}
    Search only for notes that have reminder.
     
    ### enb { Argument }
    Argument: {`notebook name`}
    Search notes by Notebook.
    If you select the notebook, the notes in that notebook will be searched.
    If no argument exist, search for all notebooks.
    You can search these notes again.
     
    ### enf { Argument }
    1st Argument: {`file extension`}
    2nd Argument: {`content to search`}
    Search for notes with attachments of a specific extension.
     
    Example:
    ```
    // Search for pdf files with compiler in file name
    enf pdf compiler
    ```
     
    ### enl
    Check your command usage log.
    By selecting the corresponding log, you can execute the command.
    The maximum number of logs to be stored can be specified in Options.
    This command displays the same command only once.
    enl supported commands : `ens`, `ent`, `enf`, `enr`, `enb`, `enu`, `noteopen`, `en > sync`, `entodo`
     
    ### enx { Argument }
    Argument: {`content to search`}
    Export the retrieved note to your Desktop path as html.
     
     
     

     
  24. Like
    jopemachine got a reaction from cands in Alfred-evernote-workflow   
    Thanks for reporting a bug.
     
    Could you give me more hint by sending me some debug info?
     
    I think I need to look into your htmlCacheLog.json to resolve the issue.
     
    You can send the file to below email.
     
    (gravityc95@gmail.com)
     
     
  25. Like
    jopemachine reacted to chris_arceneaux in Youtube Music Controls for Chrome   
    @jopemachine - You need to enable Applescript in Chrome. Please check requirements in my original post.
     
    @politicus - Looks like the YouTube Music tab is not found in your Chrome browser. Can you share a screenshot of the title of your YouTube Music tab?
×
×
  • Create New...