Jump to content

Tyler Eich

Member
  • Posts

    628
  • Joined

  • Last visited

  • Days Won

    22

Reputation Activity

  1. Like
    Tyler Eich reacted to kirklove in Colors—convert color formats & access the OS X color panel   
    Thanks again for all your help and the wonderful workflow. Much appreciated. 
  2. Like
    Tyler Eich got a reaction from kirklove in Colors—convert color formats & access the OS X color panel   
    Update to v1.41:
    More robust color parsing Bug fix for color previews with 0 opacity Minor icon updates Download
  3. Like
    Tyler Eich reacted to joost in External triggers for workflows   
    +1
  4. Like
    Tyler Eich reacted to TLK3 in Clipboard Merging - Custom Separator Character   
    Allow the user to enter a custom character to separate appended items. Space, newline, and "none" are nice but comma and pipe would be cool as well, in addition to others I could have used.
  5. Like
    Tyler Eich got a reaction from twinpeaks in File/Folder Archiver   
    It's definitely possible. It would probably require a password prompt on the first go with an option to save that password for future use; then it could use the OS X keychain to store the password securely...
     
    I like this idea . I may rework a lot of my code anyway; it's some of the first PHP I ever wrote, and it's pretty messy
     
    Cheers
  6. Like
    Tyler Eich reacted to adrianfurlan in File/Folder Archiver   
    Hello,
     
    How could I alter the dmg.php script so that it creates an encrypted disk image? Can it be done while using a previously configured password? (No annoying prompts) 
     
    The modified workflow could save me from the hassle of creating multiple encrypted .dmg's via Disk Utility.
  7. Like
    Tyler Eich reacted to erikcw in Option for Copy to Clipboard Workflow Output to bypass Clipboard history   
    It would be handy to have an option for the "Copy to Clipboard" Workflow output to bypass Alfred's Clipboard history.  Basically an internal version of the "Ignore Apps" option.
     
    It'd be nice to be able to keep clutter out of the history.  In this case, I'm using an Alfred workflow as a basic text expander ( http://jdfwarrior.tumblr.com/post/40355737734/a-little-secret-in-alfred-2-youll-like ).
  8. Like
    Tyler Eich reacted to tigertype in Store images in Alfred's clipboard history, allow images in clipboard snippets   
    OK, as a designer/photographer/painter, I must add my voice to be heard....when I installed the powerpack I was already so impressed and excited about Alfred’s attributes that I simply assumed images support would be there and was surprised to see that it didn’t exist. For years I’ve been using the cool You Software’s You Control app which added a lot of other cool things beyond multiple persistent clip boards with images, like creating custom menus for the Mac’s top menu bar, clock appearance config controls, pop out calendars which you could tear off for persistence on the finder screen, lots more really, but they have closed their website and the app hasn’t been updated in 3 or 4 years and sadly it’s getting wonky. So I thought Alfred would take it’s place, sadly to find it lacking one of my absolutely crucial elements.
    So developers...pretty please?
  9. Like
    Tyler Eich reacted to Andrew in Add support for mailmate email client   
    Just to update this thread, I'm adding the ability to add custom AppleScript for open ended email support in the next release of Alfred. This means that users will be able to add support for additional mail clients which Alfred doesn't support by default
  10. Like
    Tyler Eich reacted to vitor in [How To] Get frontmost tab’s url and title of various browsers   
    Starting with Alfred 5, you can use Automation Tasks to achieve the same results and more.
     
    I’ve been seeing a lot of workflows that need to interact with a browser via AppleScript (usually to get a page’s url), but most of them seem to settle on a single browser, which is a shame. I can understand — AppleScript is a pain, and since each browser implements these functions however they want, finding the best way to do it with each one can be difficult, so here’s the code for most of them.
     
    The code for this may seem massive, but it is not. Read the comments to understand when to use what.

    You can find the latest version of this as a gist.
     
    -- AppleScript -- -- This example is meant as a simple starting point to show how to get the information in the simplest available way. -- Keep in mind that when asking for a `return` after another, only the first one will be output. -- This method is as good as its JXA counterpart. -- Chromium variants include "Google Chrome", "Chromium", "Opera", "Vivaldi", "Brave Browser", "Microsoft Edge". -- Specific editions are valid, including "Google Chrome Canary", "Microsoft Edge Dev". -- "Google Chrome" Example: tell application "Google Chrome" to return title of active tab of front window tell application "Google Chrome" to return URL of active tab of front window -- "Chromium" Example: tell application "Chromium" to return title of active tab of front window tell application "Chromium" to return URL of active tab of front window -- Webkit variants include "Safari", "Webkit". -- Specific editions are valid, including "Safari Technology Preview". -- "Safari" Example: tell application "Safari" to return name of front document tell application "Safari" to return URL of front document -- "Webkit" Example: tell application "Webkit" to return name of front document tell application "Webkit" to return URL of front document -- This example returns both the title and URL for the frontmost tab of the active browser, separated by a newline. -- For shorter code inclusive of all editions, only the start of the application name is checked. -- Keep in mind that to be able to use a variable in `tell application` — via `using terms from` — we’re basically requiring that referenced browser to be available on the system. -- That means that to use this on "Google Chrome Canary" or "Chromium", "Google Chrome" needs to be installed. Same for other browsers. -- This method also does not exit with a non-zero exit status when the frontmost application is not a supported browser. -- For the aforementioned reasons, this method is inferior to its JXA counterpart. tell application "System Events" to set frontApp to name of first process whose frontmost is true if (frontapp starts with "Google Chrome") or (frontApp starts with "Chromium") or (frontApp starts with "Opera") or (frontApp starts with "Vivaldi") or (frontApp starts with "Brave Browser") or (frontApp starts with "Microsoft Edge") then using terms from application "Google Chrome" tell application frontApp to set currentTabTitle to title of active tab of front window tell application frontApp to set currentTabUrl to URL of active tab of front window end using terms from else if (frontApp starts with "Safari") or (frontApp starts with "Webkit") then using terms from application "Safari" tell application frontApp to set currentTabTitle to name of front document tell application frontApp to set currentTabUrl to URL of front document end using terms from else return "You need a supported browser as your frontmost app" end if return currentTabUrl & "\n" & currentTabTitle  
    // JavaScript for Automation (JXA) // // This example is meant as a simple starting point to show how to get the information in the simplest available way. // Keep in mind that when asking for a value after another, only the last one one will be output. // This method is as good as its AppleScript counterpart. // Chromium variants include "Google Chrome", "Chromium", "Opera", "Vivaldi", "Brave Browser", "Microsoft Edge". // Specific editions are valid, including "Google Chrome Canary", "Microsoft Edge Dev". // "Google Chrome" Example: Application('Google Chrome').windows[0].activeTab.name() Application('Google Chrome').windows[0].activeTab.url() // "Chromium" Example: Application('Chromium').windows[0].activeTab.name() Application('Chromium').windows[0].activeTab.url() // Webkit variants include "Safari", "Webkit". // Specific editions are valid, including "Safari Technology Preview". // "Safari" Example: Application('Safari').windows[0].currentTab.name() Application('Safari').windows[0].currentTab.url() // "Webkit" Example: Application('Webkit').windows[0].currentTab.name() Application('Webkit').windows[0].currentTab.url() // This example returns both the title and URL for the frontmost tab of the active browser, separated by a newline. // For shorter code inclusive of all editions, only the start of the application name is checked. // This method is superior to its AppleScript counterpart. It does not need a "main" browser available on the system to reuse the command on similar ones and throws a proper error code on failure. const frontmost_app_name = Application('System Events').applicationProcesses.where({ frontmost: true }).name()[0] const frontmost_app = Application(frontmost_app_name) const chromium_variants = ['Google Chrome', 'Chromium', 'Opera', 'Vivaldi', 'Brave Browser', 'Microsoft Edge'] const webkit_variants = ['Safari', 'Webkit'] if (chromium_variants.some(app_name => frontmost_app_name.startsWith(app_name))) { var current_tab_title = frontmost_app.windows[0].activeTab.name() var current_tab_url = frontmost_app.windows[0].activeTab.url() } else if (webkit_variants.some(app_name => frontmost_app_name.startsWith(app_name))) { var current_tab_title = frontmost_app.documents[0].name() var current_tab_url = frontmost_app.documents[0].url() } else { throw new Error('You need a supported browser as your frontmost app') } current_tab_url + '\n' + current_tab_title  
    Other browsers
    Firefox
    Absent since although it’s possible to get the window’s title, it’s not possible to get its URL (it used to be, before version 3.6). It’s possible via hacky ways that consist of sending keystrokes, but those can be unreliable. This bug is being tracked in Bugzilla.
  11. Like
    Tyler Eich reacted to _mk_ in Define alternate text for modifier keys at item level   
    I have a script filter that shows detailed information of an OmniFocus task. I would like to add trigger actions based on the information that was selected and the modifier key that was pressed.
     

     
    So for example selecting the project would result in the following actions:
    NO MODIFIER: list tasks of project ALT: change project Selecting the context would trigger the equivalent actions for the context.
     
    Currently, Alfred only allows to specify an alternate subtitle per modifier key with no regard to the selected result. I would suggest to extend this functionality to override the "global" modifier subtitle on item level:
     
    <items> <item uid="myuid" arg="myarg"> <title>My title</title> <subtitle>My default subtitle</subtitle> <icon>icon.png</icon> <alt>My subtitle when pressing ALT</alt> <cmd>My subtitle when pressing COMMAND</cmd> <ctrl>My subtitle when pressing CONTROL</ctrl> <fn>My subtitle when pressing FN</fn> </item> </items> This would allow for more flexibility when using modifier keys.
  12. Like
    Tyler Eich reacted to Jono in Help modifying AppleScript to an Alfred action   
    That's it! Works perfectly now, thanks! 
  13. Like
    Tyler Eich got a reaction from Jono in Help modifying AppleScript to an Alfred action   
    Oops! I updated my original response; see if that new code works for you
     
    Cheers
  14. Like
    Tyler Eich got a reaction from Jono in Help modifying AppleScript to an Alfred action   
    It looks like you forgot to make q a file object; when you get the selection from Finder, it returns a file object automatically.
     
    Maybe try changing this:
    try duplicate q to "Macmini:Desktop:" with replacing to this:
    try duplicate ((POSIX file q) as alias) to ("Macmini:Desktop:" as alias) with replacing I got this answer from Stack Overflow
     
    Make sure you run this in the 'Run NSAppleScript' object; '/usr/bin/osascript' will not perform as expected.
     
    Cheers
  15. Like
    Tyler Eich reacted to xtin in Send the content of the input line from ScriptFilter to the next step as {input}   
    Many scripts that rely on external sources like web services or databases need some considerable time to evaluate.  As Alfred will always send the content of the currently selected Item if you press enter, it can only submit what has been entered up to the last successful evaluation of the script. Now for scripts where you input text, e.g. a chat message, where upon pressing enter you want to do something with that message, even if processing it has not finished yet, it would be super useful if you can access the content of the input line from the ScriptFilter in the Script, maybe as {input}. 
     
    (My current usecase is implementing skyping via Alfred, I display the last messages between the user and the currently selected friend as items, it really does not matter which one is selected to submit the message, however it is super important that the complete input string is sent to the script so it can be sent to skype, as otherwise parts of the messages will be missing. Unfortunately the SQLite query to fetch said data takes a while (maybe 50 to 100ms), enough to consistently eat my smilies or at least their mouths, which is a horrible thing to do to smilies I think this should be relatively simple to implement and provide a huge benefit to Alfred, namely be able to chat with it fluently. (Or write E-Mails, or...) )
     
    (This a result of this thread: http://www.alfredforum.com/topic/1416-incomplete-query/)
  16. Like
    Tyler Eich reacted to jorbsd in ER: further 1Password integration   
    In addition to going to websites it would be great to be able to do something like:
     
    1p <type for match>
     
    and then just get the password for that item in the pasteboard
     
    This would allow for faster copying of frequently used passwords like Twitter, Facebook, etc. for use elsewhere
  17. Like
    Tyler Eich reacted to craig in hide alfred when dragging   
    I've pestered them on twitter about this  a few times, but thought I'd post here to see if it had any mass appeal:
     
    I'd like an option to hide the alfred window when dragging something out of the file results -- kinda like Skitch, when dragging the image out as a file.
     
    I use alfred a lot to find files for dragging into a waiting "open file" dialog, and alfred always appears right over the dialog box.
  18. Like
    Tyler Eich reacted to Andrew in Feature Request: Clone workflow   
    To start with, I want to add duplicate at the workflow level, but eventually, I want to make it significantly easier to play around with workflow objects themselves (i.e. copy / paste / duplicate within a workflow).
  19. Like
    Tyler Eich reacted to vitor in Drag and drop for File buffer   
    Another vote for this. Drag and drop from the file buffer would be insanely more useful than simply dragging from the results.
  20. Like
    Tyler Eich reacted to Bweggersen in Drag-and-drop from the buffer   
    When I've buffered a few files, it would be really helpful if I could drag-and-drop the selected files from the Alfred UI and into whatever application I would like. This would allow me to select a few files and quickly add them as attachements in Gmail in the browser.
     
    Benjamin
  21. Like
    Tyler Eich reacted to mcskrzypczak in Drag and drop for File buffer   
    My idea is to get more from File buffer ability. It is superb right now, but I think it could be even better with drag and drop. What I mean is to select files into buffer and then would be possible to drag those anywhere we want to drop. Similar to DragonDrop app.
  22. Like
    Tyler Eich reacted to mcskrzypczak in Drag and drop for File buffer   
    I do realize that. The point is that I can drag'n'drop only one element in the way you described. What I was mean is to drag all files selected (by using alt+down arrow) in file buffer into somewhere else.
  23. Like
    Tyler Eich reacted to vitor in Custom and default escaping options   
    I’ve been seeing this kind of situation more and more. It’s starting to feel like just having all the boxes unchecked by default would be a better option, since a lot of (novice?) users do not seem to understand what they’re for (or don’t pay attention). Since it’s also a bit tiring to select a specific set of characters for escaping over and over, an option to have a default (or let Alfred use the latest one) would give greater control to more experienced users.
     
    A different solution would be to substitute the check boxes for an input box. That way, users could simply type what characters they’d like to have escaped, depending on their specific needs (the current options certainly do not cover every case).
  24. Like
    Tyler Eich reacted to politicus in Multi selection in Alfred results   
    I don't know if this is possible so i am posting it here. 
     
    Let's say I have three mounted disks and I only want to unmount two of them.
    ASOT I have to repeat the process "Eject disk X" two times. 
     
    What I do like to do is type the keyword of the workflow that unmount disks, select 
    all the disk I want to unmount and click enter.
     
    Another use case, when using the buffer, I have to type the name of the file I want to add, 
    hit alt+up for any file I want to add. I would like to have to type the name of the file I want to add,
    select all the files and I hit and special shortcut to add them to the buffer.
     
    One could select the files by clicking or a la Finder (ie with a shortcut shift+down).
     
     
  25. Like
    Tyler Eich reacted to politicus in Show Alfred with Selected Text and fallback searches keywords   
    @Tyler Oh my god! Thanks a bunch. Looks like Alfred is an everlasting source of little "things" that makes our life way easier 
     
    @Wilcard : this gem is well hidden, but so useful!
×
×
  • Create New...