• WyldKard

    I like and use Dropbox, but it would be nice to have an iCloud document sync method in addition to the current Dropbox support. I consider iCloud more secure than Dropbox privacy-wise, and being able to keep documents synced across iPhone/iPad without having to rely on Dropbox would be nice to have, IMO.

    posted in Editorial read more
  • WyldKard

    Yes, it's absolutely possible - I've done it. My initial attempt consisted of several workflows - one for posting a new blog post, one for generating the index.html and RSS page, one for removing a post, etc. I ran this for a few months before taking the site down. My scripts were based around uploading the HTML files to an FTP site. If you're interested, I can see about condensing the workflows into something more singular, and share what I have.

    posted in Editorial read more
  • WyldKard

    In short, I'm trying to set a file's contents based on whether or not the file already exists. If it doesn't exist, I'd like to populate it with a header. If it does exist, I'd like to append information to the file.

    I'm grabbing the contents of the requested filename with Get File Contents, and storing the result in a variable called "oldcontent". I then set up an if/then block to set the file contents if oldcontent is empty (i.e. the filename I requested doesn't exist). In my if/then, I'm leaving the "is Equal to" block blank, but this doesn't seem to work. Is there another way?

    posted in Editorial read more
  • WyldKard

    @jonmoore - Just out of curiosity, but what prompted this post? Is @omz not happy with the sales of Editorial to date?

    I'm not surprised Pythonista is selling better. Those who want to tinker in Python are more likely to do it in a more general-purpose app. Editorial is aimed at text/document manipulation, and most people who write don't even do it in Markdown, so it's naturally difficult for a plaintext writing app to dominate the "writing app" space.

    @MartinPacker - Arguably, any workflow in the workflow directory could be included by default. I just don't know that it's necessary, given that users can just search there directly. Perhaps a better in-app method of accessing the workflow directory would help, though.

    posted in Editorial read more
  • WyldKard

    Over the years, I've found apps like VoodooPad and Trunk Notes rather useful for certain projects, in that being able to link to related internal documents easily makes for a great organizational tool. Some projects are so perfect for the personal wiki format that it's difficult to restructure them in other apps, since you lose so much value.

    Unfortunately, VoodooPad on iOS is too barebones to use alone, as you lose out on much of the power that VoodooPad's desktop version offers (e.g. scripting). Trunk Notes is great because it uses plaintext files and actually has Lua scripting built in, but the app has several other quirks that make me wish I could use Editorial instead.

    I don't expect Editorial to ever support rich media as it's a text tool, but it would be awesome if Ole allowed Editorial users to reference internal documents in an easier fashion, ala Wiki Links. Right now, you can reference other internal documents using a Markdown link to the editorial "open" URL scheme, but the link is ugly due to length. If you preview the file in Editorial, the link is hidden, but when you click the link you're not taken to the preview screen, so the destination file will again show ugly links.

    Is there a way to open a document in the preview window using the URL scheme? Or does anyone have any other ideas on how to use Editorial as a personal wiki - perhaps some innovative Workflow ideas?

    posted in Editorial read more
  • WyldKard

    Ah, even better - thanks again!

    posted in Editorial read more
  • WyldKard

    jonmoore: Thanks for those workflows! For the last one, I assume you're first calling another workflow that gets the open document's path and constructs a URL with it - something like this?

    posted in Editorial read more
  • WyldKard

    While there are a lot of Dropbox-based writing apps, few (like Notesy) will search within plaintext files. It'd be great if Editorial could do this too, since it's become the primary writing app of a lot of people.

    Update: Oops, just found the Global Search workflow! It's not recursive, but I guess it does content search. Now to find a way to combine it with a filename search...

    posted in Editorial read more
  • WyldKard

    I'm working on a workflow to archive blog posts to Evernote, and I'd like to keep the source content in Markdown. I can upload the document to Evernote, but line breaks are missing (I just get one giant wall of text). Is there a way to preserve line breaks somehow, and still keep my content as plaintext (i.e. not upload as HTML)?

    posted in Editorial read more
  • WyldKard

    Viticci's book is probably the most single comprehensive resource, but his blog posts cover the meat of it already. My suggestion would be to read those, then look at some Workflow examples from the official site and what comes with Editorial.

    Once you understand the basics of how Workflows work and interact with Python scripts, the rest is just tinkering with Python itself. In fact, you can pretty much use straight-up Python without using complex Workflows themselves, though using the Workflow structure helps make the code cleaner.

    posted in Editorial read more
  • WyldKard

    Yeah, I was hoping this was an encoding issue, but it's totally due to the the ENML spec. Does anyone know if there's a quick way to convert HTML/XML/ENML back into Markdown, or do the tools only flawlessly work in one direction?

    posted in Editorial read more
  • WyldKard

    Ah, I think the files in my sub-folders didn't have supported extensions, despite being plaintext, so they weren't coming up under the Global Search Results. Works now - thanks!

    posted in Editorial read more
  • WyldKard

    Is there any way (or will there be in the future), to obtain information from the M7 processor in newer iOS devices?

    posted in Pythonista read more
  • WyldKard

    I created a Workflow that uses the "Set File Contents" feature. When I call the actual block (from the pre-populated Workflow sets) there's no problem - a file I specify on Dropbox is properly overwritten.

    However, in the same workflow I also want to save a file whose name is dynamic - I'm pulling the filename from the contents of another file. As such, I store the filename in a variable, which means I can't use the "Set File Contents" Workflow block, so instead I run a custom Python script and call:

    editor.set_file_contents( filepath, action_in.encode('utf8'), 'dropbox')

    What happens is if the file doesn't exist, it's created and the contents are set correctly. If the file does exist, however, a new file is created, with the same filename and " (n)" added to the end, where n is a number. So, if I call the workflow three times, I get:

    filename.md
    filename (1).md
    filename (2).md

    Is there a reason the file is not being overwritten correctly, or is this a bug?

    posted in Editorial read more
  • WyldKard

    Would it be possible to allow the use of the contents of a variable name for functions like "Set File Contents"? Currently, users have to know the name of the file in advance when creating a Workflow. We can select variables in other portions of Workflow blocks, but not when dealing with files.

    posted in Editorial read more
  • WyldKard

    It's easy to create a new file using workflows, but is there any way to delete a file locally or in Dropbox?

    posted in Editorial read more
  • WyldKard

    I'm trying to see if there's a specific chain of actions to reproduce this, but sometimes when editing a workflow, I can't expand certain actions. I can expand other actions, but not all of them. The only way to fix this is to stop editing the given workflow, then going back into the editing screen.

    posted in Editorial read more
  • WyldKard

    Got it - I'm setting a new variable by appending my dynamic filename to a default path via a Python script, but good to know I can do it from the Set Variable action block as well. Thanks.

    posted in Editorial read more
  • WyldKard

    Just noticed that you can't mix and match a variable name and manual text. For example, I'd like to prepend the variable value with a filename path, but I can only do one or the other. Could this be added in a future version?

    posted in Editorial read more
  • WyldKard

    Great - I'll modify my workflow to use the block then instead of setting file contents from a script, until this gets fixed. Thanks for the quick reply!

    posted in Editorial read more
Internal error.

Oops! Looks like something went wrong!