Br4ndon Posted January 28, 2015 Posted January 28, 2015 do shell script "open " & satimage_pkg & " -a Installer"
smarg19 Posted January 28, 2015 Author Posted January 28, 2015 do shell script "open " & satimage_pkg & " -a Installer" Open the script and paste this in. Then save and rerun. on run --get path to current directory set base_path to my get_base_path() --prepare path to Python converter script set satimage_pkg to base_path & "Satimage398.pkg" set sResult to do shell script "xattr -dr com.apple.quarantine '" & satimage_pkg & "'" do shell script "sleep 0.2" do shell script "open '" & satimage_pkg & "' -a Installer" end run on get_base_path() set {tid, AppleScript's text item delimiters} to {AppleScript's text item delimiters, "/"} set _path to (text items 1 thru -2 of (POSIX path of (path to me)) as string) & "/" set AppleScript's text item delimiters to tid return _path end get_base_path
Br4ndon Posted January 28, 2015 Posted January 28, 2015 error "xattr: No such file: /Users/Brandon/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.8CE5BF0A-F2CA-4F0B-80D7-CBF87F519606/Satimage398.pkg" number 1 Highlight: do shell script "xattr -dr com.apple.quarantine '" & satimage_pkg & "'"
smarg19 Posted January 28, 2015 Author Posted January 28, 2015 Change the package number to whatever is in the workflow directory.
Br4ndon Posted January 28, 2015 Posted January 28, 2015 Thanks Smarg - that worked. Everything seems to be working now! Question: Does the wfy command only work on notes that have been created via mden? Or if there is a note created within Evernote can it too be Wikify'd?
Br4ndon Posted January 28, 2015 Posted January 28, 2015 Smarg, When using wfy - on a note created within evernote, I get this error: [ERROR: alfred.workflow.action.script] wikify_sel.scpt: execution error: Evernote got an error: No result was returned from some part of this expression. (-2763)
smarg19 Posted January 29, 2015 Author Posted January 29, 2015 What version of Evernote are you using? And can you run the script in Script Editor again and tell me the highlighted line?
Br4ndon Posted January 29, 2015 Posted January 29, 2015 What version of Evernote are you using? And can you run the script in Script Editor again and tell me the highlighted line? Evernote Version 6.0.5 (451190 Direct) find text "<body.*?>(.*?)</body>" in this_html using "\\1" regexpflag {"MULTILINE"} with regexp and string result
u-4 Posted April 15, 2015 Posted April 15, 2015 I got same error as Br4ndon got. I'm not familiar with scripts (and English), but I tried to solve this problem. In Evernote6, "HTML content" no longer contain "<body></body>" (I confirmed this by inserting "return this_html" just above the line containing this problem.). So I replaced "find text "<body.*?>(.*?)</body>" in this_html" with "find text "\".*?(.*?)\"" in this_html", and this change seems working well. I hope this helps. Moses and smarg19 2
Moses Posted April 23, 2015 Posted April 23, 2015 About this, I am not sure if this would work, but I went into the workflow and tried to run the script for wfy. It gives me an Apple Script error: "Evernote got an error: Can’t get notebook "!nbox"." Inbox is the name of my default notebook, the one in which the note I was selecting is. Hope it helps. I have the same problem, ... It is not so much an issue because I primarily use: ensel, Best,
smarg19 Posted April 23, 2015 Author Posted April 23, 2015 I am in the middle of some hectic work, but I will check in on this workflow hopefully sooner rather than later. Could someone post a list of the outstanding/remaining issues, so I know what to look for when I get back at it?
heychad Posted July 12, 2015 Posted July 12, 2015 (edited) Thank you so much for your work on this! I am having trouble with the wfy keyword command. I can create a "wikified" note in Evernote by typing the note in Markdown and sending it to Evernote with "mden" It finds all existing notes with titles that match phrases in the Markdown and links to them. Great! The problem occurs when I try and convert existing Evernote notes into "wikified" notes. Debugging the "wfy" command I get the following line when running "wfy" with one note selected: [iNFO: alfred.workflow.input.keyword] Processing output 'alfred.workflow.action.script' with arg '' Maybe this looks like there is no value being passed to the command to go and search for? Selecting multiple notes gives this error: [ERROR: alfred.workflow.action.script] wikify_sel.scpt: execution error: Evernote got an error: No result was returned from some part of this expression. (-2763) Digging into the wikify_sel.scpt script it is in this expression find text "<body.*?>(.*?)</body>" in this_html using "\\1" regexpflag {"MULTILINE"} with regexp and string result I don't know AppleScript, otherwise I'd try and fix. Hopefully this gives you enough info to debug. I am considering learning AppleScript just to keep this functionality alive for me, it is that useful. Thanks! Best, Chad P.S. Using latest Wikify build 2.6 and Mac Yosemite and Evernote 6.0.15 Edited July 12, 2015 by heychad
smarg19 Posted July 15, 2015 Author Posted July 15, 2015 (edited) Did you install the Satimage package? It's a prerequisite of those features. You can start the installation via the wfy:install keyword. If you already have it installed, it would suggest that Evernote has changed something about its underlying notes structure, that will require me to figure that out. Can't give a firm deadline on that, but I will get to it. Edited July 15, 2015 by smarg19
heychad Posted July 19, 2015 Posted July 19, 2015 Satimage is installed. the mden command works fine, it is when I try and use wfy that it doesn't work. Thanks for checking in! Best, Chad
Moses Posted November 6, 2015 Posted November 6, 2015 Just Updated to the latest version, and mden no longer works, the script selects all notes (19,000) and pauses at the Evernote window: TOC, Merge, Move, ..., Thanks for any info, I have not tried to debug yet, not keen on rerunning the script.
Moses Posted November 6, 2015 Posted November 6, 2015 ... So I was previously using 3.0 or lower, and I have just noticed 3.1 is marked as not compatible with Yosemite, I was previously only getting mden to work,
Moses Posted January 30, 2016 Posted January 30, 2016 I got same error as Br4ndon got. I'm not familiar with scripts (and English), but I tried to solve this problem. In Evernote6, "HTML content" no longer contain "<body></body>" (I confirmed this by inserting "return this_html" just above the line containing this problem.). So I replaced "find text "<body.*?>(.*?)</body>" in this_html" with "find text "\".*?(.*?)\"" in this_html", and this change seems working well. I hope this helps. Thank you! for this guidance, Running wikify_sel.scpt with this edit, works fine, great actually, Running from Alfred works fine and throws an error Starting debug for 'Wikify' {Before edit} [ERROR: alfred.workflow.action.script] wikify_sel.scpt: execution error: Evernote got an error: No result was returned from some part of this expression. (-2763) {After edit} [iNFO: alfred.workflow.input.keyword] Processing output 'alfred.workflow.action.script' with arg '' [ERROR: alfred.workflow.action.script] osascript: couldn't save changes to script wikify_sel.scpt: Signaled when a runtime internal data structure overflows I'll keep looking for what this means, Best,
heychad Posted May 4, 2016 Posted May 4, 2016 (edited) UPDATE: Version 2.6 mixes a minor problem in enmd where previously paragraphs were broken into lines of a fixed length. Now, Evernote paragraphs are properly converted to MD paragraphs. @40-02, still not certain about your bug. It might be the Russian. Could you share the Evernote note that caused the error? stephen This bug has resurfaced for me in version 3.1. enmd truncates lines at 77 characters in the outputted .md file. Can someone help me figure out how to fix this? EDIT: Found the culprit. Go into the dependencies folder and edit the html2text.py file. I changed line 48 to "BODY_WIDTH = 0" Best, Chad Edited May 4, 2016 by heychad
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now