File type not recognized in bad path in AppleScript

Michael Bishop's Avatar

Michael Bishop

28 Feb, 2012 02:36 AM

Following the instructions @macdrifter , I attempted to create a hotkey in Alfred. I thought I had adjusted the path in the applescript to the file in my Dropbox for my setup, however, when it ran, I received a file type fail -Marked didn't recognize this file type screen.

After correcting the path, the file opened just fine.

Following up per request via Twitter. Thanks again for ALL of the tools you've shared.

  1. Support Staff 1 Posted by Brett on 28 Feb, 2012 03:15 AM

    Brett's Avatar

    Can you show me the path that the AppleScript was sending? And how were you calling Marked? What exactly was the script command?


  2. 2 Posted by Michael Bishop on 28 Feb, 2012 03:40 AM

    Michael Bishop's Avatar

    I literally copied the script at macdrifter

    tell application "Marked"
    open "/Volumes/Macintosh HD 2/Dropbox/Notes/Byword Markdown Cheat Sheet.txt"
    end tell

    and changed the path & file name but forgot to capitalize Users (also forgot to make it plural).

    Fixing that and it worked fine.

  3. 3 Posted by Michael Bishop on 28 Feb, 2012 03:54 AM

    Michael Bishop's Avatar

    Also to be thorough, this was in Alfred, extensions, Applescript and set it to run in background & not be an action.

  4. Support Staff 4 Posted by Brett on 28 Feb, 2012 04:06 AM

    Brett's Avatar

    Interesting. For me, that does open a blank file (without the error message). I'll have to look into it. Thanks for the report.


Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac