Jump to content

Carlos-Sz

Member
  • Posts

    911
  • Joined

  • Last visited

  • Days Won

    69

Posts posted by Carlos-Sz

  1. OK. I made a workflow and tested it only with AppleScript Editor. Here is the code that worked:

     

    —-The save as dialog uses text as input and UNIX path as far as I can tell
    set filePath to POSIX path of q as text
    
    tell application "System Events"
    	set theApplication to application processes whose frontmost is true
    	set target to item 1 of theApplication
    	set target to a reference to front window of target
    	set target to a reference to front sheet of target
    	delay 0.5
    	tell target to keystroke "g" using {command down, shift down} -- Activate goto field
    	delay 0.5
    	tell target
    		set value of text field 1 to filePath
    		delay 0.5
    		key code 36 -- simulate pressing the Enter key
    	end tell
    end tell
    
    

     

    I removed the “try” part of the code to better debug it… Your final code of course may add them back.

     

    Finally, you can write AppleScript directly using Language "/usr/bin/osascript”.

  2. Great!

     

    I now have to evernote workflows and don't really know what the difference is. One by Florian Pellet and one by Carlos Alberto Sztoltz. Can someone comment on the difference?

     

    There is a different approach for a note search (my workflow uses Evernote commands vs. spotlight) and how to add a new note may be different too (e.g. if you make a note or text selection while your Browser is the top most app the note will also include the URL).

     

    Anyway, maybe you should try both and see what fits better in you way of take notes.

  3. Markdown to BBCode

    What’s new?

    • Up to 3 header levels (more than this is not visually relevant when translated to BBCode)
    • Support for multiple links per paragraph
    • Support for header + text style (e.g. bold)
    • Markdow code span will be translated to BBCode text underline: enclose the word with a single backtick e.g. `backtick`
    • Removed unecessary blank lines at the end of the text
    • Support for code block by starting a line with tab (see below)
    Here is a code block.
    Start each line of it using a tab
    

    Download

    Download version 1.4 here.

    PS: post wrote with Byword and converted using Markdown to BBCode workflow

  4. This is not working for me.  It copies to clipboard but doesn't show up in imgur for some reason

    It’s working here.

    Try to delete the workflow. Restart Alfred. Download and install the workflow again.

    Its also great because you don't have to create an account and save/categorize your uploaded images. For those kinds of instances I would use dropbox or something like that. When I just want to upload a quick screen capture to someone or an image to post to a forum, but that I dont necessarily ever want to think about or interact with again, imgur is where I turn.

    I agree. Very nice approach.
  5. Excellent work and thank you! Big time saver. Jut a quick shift-cmd-4 to grab a screen and click it on the desktop then run your workflow. Very slick.  :)

     

    I didn’t know imgur until the request and it is a very interesting and easy to use image service.

  6. Upload to imgru 1.2

    Goal

    Upload a selected Finder image file to imgru.

    Triggers

    • Hotkey: select an image file in Finder, hit the hotkey and it will be uploaded and the link copied to the clipboard
    • Keyword: select an image file in Finder, bring Alfred and type upimgur then hit return key and it will be uploaded and the link copied to the clipboard
    • Keyword + option key: select an image file in Finder, bring Alfred, type upimgur, hold the Option key then hit return key and it will be uploaded, the link copied to the clipboard and the URL opened in the default Browser
    • File Action: select an image file in Finder, hit the Alfred File Action hotkey (Cmd+Opt+\), select Upload with imgur

    Note

    Workflow requested by dviper48 here.

    Download version 1.2 (23 Mar 2013) here.

     

     

  7. Overview

    The workflow converts a markdown text to a forum BBCode and copy it to the clipboard.

    Usage

    Select the text to be converted in your Markdown Editor (such as Byword). Bring Alfred and type the keyword mark then hit Return key. You can also use a hotkey instead of the keyword.

    Markdown Syntax

    Headers

    # Header Level 1
    ## Header Level 2
    ### Header Level 3
    
    Font Styles

    *Italic* or _Italic_
    **Bold** or __Bold__
    ***Italic and Bold*** or ___Italic and Bold___
    ~~Strike Through~~
    ~~~Underline~~~
    
    Link

    Multiple links per line utilizing the following format:

    [Example](http://www.example.com)
    
    Image

    Multiple images per line utilizing the following format:

    ![Example](http://www.example.com/example.png)
    
    Image Link

    Single image link (that points to an URL) per line utilizing the following format:

    [![Example](http://www.example.com/example.png)](http://www.example.com)
    
    Unsorted List

    Up to 2 levels utilizing one asterisk then a space at the beginning for level 1 and a tab plus an asterisk and a space at the beginning for level 2:

    * item at level 1
    	* item at level 2
    * another item at level 1
    
    Numeric List

    Up to 2 levels utilizing a number followed by a dot and a space at the beginning for level 1 and a tab plus a number followed by a dot and a space at the beginning for level 2:

    1. item at level 1
    	1. item at level 2
    2. second item at level 1
    
    Code span

    Enclose the words with back ticks e.g. `inline code`

    Unlike code block you may need to escape a markdown character using a backslash.

    Code block

    Type 3 back ticks in the first line alone and another 3 in the last line alone:

    ```

    Code Line 1

    Code Line 2

    Code Line 3

    ```

    The workflow will ignore any Markdown syntax within a code block. There is no need to escape a character.

    Quote

    Just start a line with a greater-than sign followed by a space as seen below:

    > quoted text here
    
    The workflow also supports multiple lines in a quote. Just add two spaces at the end of the line (in the example below space is represented by "{space}"):

     

    > quoted text line 1{space}{space}
    > quoted text line 2
    
    Horizontal rule

    In a line alone you may type one of the following options:

    ---
    - - - 
    ***
    * * *
    ___
    
    Escaping

    To type a markdown character that is part of a syntax without being recognized as a markdown one type a backslash ("\") in front of it. A link (any kind) requires only a single backslash at the beginning of the link.

    Download

    Version: 2.0

    Release Date: 04 Mar 2014

    OSX 10.9.2

    Download Now

    What's New

    • Up to 2 levels in a simple list
    • Up to 2 levels in a numeric list
    • Support to an image that points to an URL
    • Horizontal rule
    • Strike Through
    • Underline
    • Quote, including multiple lines
    • Improved code span or inline code
    • Support to escaping
    • Added keyword mark
    • Added Help keyword mark?
    • New icon
  8. I have no idea how to even go about starting to write the scripts necessary to do this, but if someone else could, that would be awesome.

     

    Id really like a workflow that would upload the currently selected Finder image file to the Imgur hosting service, and then copy the url for that uploaded image to the clipboard. Possibly an additional function could be alt+enter would not only copy that url to the clipboard but also open the url in your default browser.

     

     

    I’m already making some tests.

     

    I should have a test version later today. Stay tuned. :)

  9. Hey Carlos, are you still getting this issue? I've tried to replicate it with your workflow, but haven't been able to replicate the issue (locally or over synced Macs). 

     

    Hi Vero.

     

    I made some tests (locally, I’m no synching yet) in both my computers but it didn’t happen again.

     

    Can you please download this workflow* and see if it works (not only file action but also the workflow itself). I'm asking you this because I had to restart Alfred in both my computers in order to make it work. 

     

    *workflow forum topic here.

     

    Thank you in advance.

  10. Great workflow!

    Any change to implement a custom url shortener or the dropbox short url db.tt if it's still usable? Thanks!

     

    For now the workflow will have:

     

    - bitly (that requires login and API key but you’ll have stats about your uploaded files)

    - gooli (that seems to be one of the fastest  in my tests)

    - normal Dropbox URL

     

    In the future and if I can fit in AppleScript it is possible to add more services of course. :)

  11. Awesome plugin, will use every day.

     

    My Alfred 2 stats keep growing these days :-)

     

    Great to hear!

     

    A new version is coming soon with support for bitly (shortened URL) and Path Finder along with zero script or workflow editing to enter personal information such as bitly login/API key and Dropbox Public folder location. In addition, File Action and better keyword support. It should be ready soon since I’m finishing some tests.

×
×
  • Create New...