Jump to content

Carlos-Sz

Member
  • Posts

    911
  • Joined

  • Last visited

  • Days Won

    69

Everything posted by Carlos-Sz

  1. I spend a few hours trying to figure out why sometimes my workflow does not work with AppleScript Editor. By the way, my workflow is simple: 1. select a text in AppleScript Editor 2. press the workflow hotkey (argument: text selection in OS X) 3. my workflow grabs the text from the clipboard, saves it in a text file and tags it with “AppleScript_Editor" using openmeta However, I have found that if the text/code has an apostrophe the workflow fails. Sample code that does not work with my workflow: --Search and replace string set theApp to " AppEdit Editor ,loc, bolo " set theApp to switchText from theApp to "" instead of " " return theApp to switchText from t to r instead of s set d to text item delimiters set text item delimiters to s set t to t's text items set text item delimiters to r tell t to set t to item 1 & ({""} & rest) set text item delimiters to d t end switchText If I select the text here I can use my workflow but in AppleScript Editor I can't. If I remove that single line with the apostrophe the workflow works. Note that the issue happens only when the hotkey is used. I have tested all code in AppleScript Editor and there’s no error. The text is processed perfectly. Here is the workflow that is set to my Dropbox Notes folder and requires openmeta (link inside the add.scpt file). However, you can set any folder and remove the openmeta code (I have tested the workflow without it). http://dl.getdropbox.com/u/127623/New%20text%20file%20with%20tag.alfredworkflow There are some unnecessary bits of code that I wrote trying to debug... NOTE: if I remove {query} from the Run Script (though I need it for the keyword) the hotkey works and thus the workflow. So there’s is an issue regarding {query} and apostrophe.
  2. Very interesting workflow, specially the Instapaper-ized. Thanks.
  3. Interesting ideas. I like the search tags within Alfred. I have just made a test Worflow that creates a text file (.txt) with clipboard content and adds the topmost app name as a tag. You can also add your own tags using Alfred of course. I like the idea to add tag to the current Finder selected file. Well, I’ll test your workflow a bit more tomorrow. Thank you for sharing it!
  4. Great theme. Thank you for sharing it.
  5. The download is huge (compared to other workflows) with a lot of files. Is that right?
  6. Nice workflow. Sometimes select the e.g. Safari URL then hit Command+C is not as fast doing all the work only with the keyboard.
  7. Zip: compress files and folders within Alfred Overview Zip files and/or folders Finder and Alfred File Action supported Unique filename Remove .DS_Store files Triggering keyword zip - after selecting files and/or folders in Finder, bring Alfred and type zip. You can optionally type the zip filename. You can optionally hold control key to select the zip file folder destination. hotkey - after selecting files and/or folders in Finder hit the hotkey. A new zip file will be created based on selection. Alfred File Action - select files and/or folders in Alfred file browser to zip (see screenshot below). What’s new in version 4.0 Alfred 3.0 supportWhat’s new in version 3.0 Select the destination folder by holding control key (keyword zip) Updated to Alfred 2.0.3 (187) Alleyoop 2 support Download Version 4.0 Release date: 08 Jun 2016 Requires Alfred 3 Download Now Zip for Alfred 2 Version 3.0 Release date: 23 Apr 2013 Requires Alfred 2.0.3 (187) Download Now
  8. Great! I hope we can see easier ways to interact with an user. Edit a script is not easy.
  9. Now you can set a custom text as the Hotkey (trigger) argument. This is useful when the workflow needs a custom user information e.g. the Dropbox ID for public links (it is different for each user). Here is my Dropbox workflow: http://www.alfredforum.com/topic/460-workflow-move-selected-finder-file-to-dropbox-url-to-clipboard/?p=2090 In order to make things easier for the user it would be great to have the same Hotkey text argument for the Keyword: instead the Hotkey the user may bring Alfred and type only the keyword (no argument necessary to be typed) and the workflow would start ({query} would be the text argument, of course). I hope I was clear. In resume, maybe it would be interesting to have a better way to ask for user personal information such as the Dropbox ID. Maybe, a text box where the user could input his information that will be available as a constant (like {query}) to be used in the workflow.
  10. Workflow updated: - the Home user folder is set automatically (no need to edit unless you have an unusual Dropbox installation) - you still have to add your Dropbox ID from your public link (see initial post with a screenshot) - a second hotkey to get a shortened URL by glo.li
  11. Nice update. I’ll use the delete every message hotkey too.
  12. I have just installed the last version. It seems to be working fine, including local mailboxes. Great workflow. Thank you!
  13. Following the OSX way is always nice and easier for new users.
  14. My suggestion: 1. Start AppleScript Editor and a new file 2. Open Alfred 2 and Copy the code between /usr/bin/osascript << END | tr "\r" "\n” and END and paste into the new file 3. Select a file in Finder (a not important one) 4. Run the script and see what is going wrong Finally, try to delete the workflow and download it again just in case.
  15. I'll try the workflow as soon as possible. It's very useful. Maybe a "fresh" as a keyword?
  16. Great idea. Later I'll check your workflow. I'll see if I can make one for Together.
  17. The idea was to make one hotkey for everything: move file and get the URL. Multiple destinations (any folder in Dropbox) would brake it. Anyway, you can easily change the destination folder or make any change that fits your needs.
  18. To Dropbox 3.0 (formerly Move to Dropbox) Overview Copy or Move a file from Finder, Path Finder or Alfred 2 file browser to Dropbox Public Folder and get the URL to the clipboard. Setup Before start using the workflow you have to configure it. The workflow will prompt you to set it when you run it for the first time or you can bring Alfred and type the keyword setup_tdb. The setup will ask for: Dropbox Public Folder location Dropbox Public ID: the number that is in every URL of your shared links The URL format: select bitly (it requires your login name and your API Key), gooli (no registration, fast alternative) or None to use the normal Dropbox URL format If you select bitly you will be prompted to enter your login name and then your API key Finally, you can choose if you want to use the shortened URL also for images or not Triggering Keyword movedb - to move a selected Finder or Path Finder file keyword copydb - to copy a selected Finder or Path Finder file keyword setup_tdb - use it to setup the workflow or to reconfigure it Hotkeys - you can set up for both copying and moving features File Action - select a file and Copy or Move within Alfred file browser What’s new Version 3.0 copy file new setup within Alfred instead of OSX dialogs updated to Alfred 2.0.3 AppleScript support Alleyoop 2 upport Download Version 3.0 Release date: 20 Apr 2013 Requires Alfred 2.0.3 (187) Supports Alleywoop 2 Download now
  19. Thank you. Very interesting! Done. That’s a good idea. I’ll see if I can code it.
  20. Thank you. That should be a forum rule: two votes and now you have to change your workflow!
  21. Thank you CarlosNZ. I’ll take a look at those commands. I know a little about AppleScript but almost nothing of Bash. What I know is the old Visual Basic 6 (for Windows).
  22. Here is a simple workflow to create a text file with clipboard content in the current or top most Finder window/folder: 1. using a hotkey: the text is created with the following filename pattern: Clipboard - yyymmdd(hhmmss).txt 2. you can use newf key in Alfred (see screenshot) so you can write the first part of the file name (use CTRL key to remove the date and time from the filename). The default date and time was code this way in order to always generate an unique filename. Screenshot: http://d.pr/i/A2Kv Download: http://d.pr/f/5Jp7 This workflow is more a sample on how to use Shell/Bash and AppleScript together. Credits to phyllisstein and his workflow* and David Ferguson for helping. * http://www.alfredforum.com/topic/394-fixed-create-a-new-file-in-the-finder/
  23. Great! At least one vote for a default extension.
×
×
  • Create New...