How many categories

I have over 20 categories - not all of them have posts yet, but I think this is too many. How many categories should a blog have? I’m guessing 6-9 is about right. (Of course, each post done with ecto appears also under ‘General’. That doesn’t suck too much…NOT)

Adsense or Nonsense

I use Google AdSense as a way of trying to make a little spare cash from my blog. I’ve only just started, and I’m still figuring out what ad settings work best. I just changed from a list of searches/hits to an Ad. Imagine my surprise when it came up with a Gay Blog Site ad: and I have no idea how it came up with this. I am not gay, and I haven’t written anything about homosexuality (before now). Of course, the irony is that I’m probably going to get more of them now, even though I’ve filtered that one…

Hello world!

I thought I might transfer my blog to this site - since it uses WordPress, and that seems cool.  I just need to work out how to set up my template here, but that shouldn’t take too long.

Blog-Novels

I’m not the only person publishing their novel on a blog as they post: Le Spirale Fantastique is a novel that an Indian fellow is writing, but he’s doing something a little cool - if you use a quote from his novel, and link it back to his novel, he will link that quote to your website. See if you can find my link - I’ve actually used the quote as part of my novel.

Blog with ecto

I thought about another improvement for BwE today. It really only occurred to me when I created a new blog for nanowriwo 2004. When a new folder is created, I wonder if it is possible to add a folder action (of the same folder action script) to the created folder. This way I could just attach the script to the .Blogs folder, and then when I create special purpose blogs, I only have to create a folder on the Palm with the right name. I also wondered if I should use the “Journal Entry” feature of Agendus for blogging. Must look into this. I placed a Blogger bug report about post times not being respected by the server, but haven’t heard back. At least they fixed up the timezone error. Update: I’ve updated the script so that when a new folder is created, a “Blog with ecto” Folder Action Script is automatically added to the sub-folder. The latest version, as always, can be found at Blog with ecto.scpt. Thought: I should also tell ecto to update the account cache, but I need to know the server details, I think.

Updated Blog with ecto.scpt

I went through a couple of revisions of Blog with ecto the other night. I’ve now added the following feature:

  • Allows posting to multiple blogs, where the closest match to the folder name is used as the blog name.

There is a small issue - the date I set (using set entry_date to date date_stamp) doesn’t seem to be respected by ecto when it posts. I’ll do a bit more testing, and possibly issue a bug report. Anyway, the link for it is Blog with ecto.scpt.

Blog with ecto.scpt

Yesterday I talked about blogging from my Palm Zire 21.

Here is the complete AppleScript for Blog with ecto.scpt. Copy this, paste it into Script Editor, and save it to ~/Library/Scripts/Folder Action Scripts/Blog with ecto.scpt

Then right-click on the folder you want monitored - I use ~/Documents/Palm/Matthew Schinckel/NoteTaker/Blog and away you go. For best results, use with MacNoteTaker. Obviously, ecto is required.

All code is ©2004 Matthew Schinckel, but may be freely used with attribution.

Note: the formatting is removed, because ecto wasn’t quite doing it right, but Script Editor will figure it out.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
on adding folder items to this_folder after receiving added_items
– Set this to true to automatically post the item(s)
– Leave as false so you can check the data.
set autopost to false
repeat with each_file in added_items
tell application “Finder”
set filename to (name of each_file) as text
open for access each_file
set entry_body to (read each_file)
close access each_file
end tell
try
set entry_title to filename
set date_stamp to word 3 of filename & “/” & word 2 of filename ¬
& “/” & word 1 of filename & ” ” & word 4 of filename
set entry_date to false
set entry_date to date date_stamp
set entry_title to first paragraph of entry_body
set entry_body to text ((count characters of entry_title) + 2) ¬
thru end of entry_body
end try
–—— You WILL need to change the next line!
set my_blog to “Life According to Matt”
tell application “ecto”
set my_doc to make new document at front with properties ¬
{entry title:entry_title, current blog:my_blog, ¬
body text:entry_body}
if false is not entry_date then
set entry date of my_doc to entry_date
end if
if true is autopost then
do post my_doc
end if
end tell
end repeat
end adding folder items to

Palm Blogging via ecto

Well, using my limited AppleScript skills, I’ve created a system for blogging via ecto from my palm. Using the MacNoteTaker Conduit, and a Folder Action Script, ecto creates & posts a new post for each new file in the monitored folder. Now all I need to do is ‘fix’ the Conduit so it handles deleted files a bit better. However, since the Conduit was written for a different development environment, I’ll have to get the original working first. Oh, and this post was done directly from my Palm. Well, the paragraph above was, anyway. Bugs to get rid of:

  • Doesn’t do much parsing of the data. Paragraphs don’t seem to exist. Fixed: Used property body text instead of entry body.
  • Use an alternate form of getting the date. MacNoteTaker date-stamps all new files. I’ll use this. Done.
  • Parse the first line to get the post title. Done.

Flickr Photos

Just as a bit of a test to see how this thing works, I’m posting an image to Flickr, and having it appear here, hopefully.

And while I’m at it, here’s what I’m listening to right now…

To Her Door from the album “Under The Sun” by Paul Kelly

Blogpsot!

I typed schinckel.blogpsot.com into my browser, wanting to check out the links I had made, but got the address wrong. Have a look - it’s funny if you look at my post a little while ago. I thought some vengeful god was hacking me.