New verb, returns the URL of the post the bar cursor points to.#
If it's a titled post, the cursor points to the specific line in the post the cursor points to.#
The verb returns undefined if the file doesn't have a head-level urlBlogWebsite attribute. #
I've posted the source code for this verb, for review -- because a few prolific Drumkit scripters have produced their own versions of this function, and I want to be sure I've got the bases covered. #
Also, I wired this function into the Eye icon, to make it easier to access. #
I was following a discussion in the support group, and reading code that @amit wrote, about matching up with the permalinks that Old School creates from within Drummer. #
Anyway, in the rush to fix the problem with Far East blogs and time zones, in October, something weird slipped through, and it can't be changed now, so I might as well document it. :-)#
Suppose I have a headline, either a singular post or part of a titled post, and I want to, in a Drummer script, generate a permalink to it. #
So first, I have to figure out what the year, month and day is, so I point to the right page. This is done in the user's timezone. That was the tricky part of the October problem. #
Then I have to figure out the permalink, the link to the purple pound sign on the line. Here we use the time in GMT.#
I have posted this as an RFC, and see if people agree, and I might bake some funcitonality in Drummer to smoothe this out. #
New verb, returns the URL of the post the bar cursor points to.#
If it's a titled post, the cursor points to the specific line in the post the cursor points to.#
The verb returns undefined if the file doesn't have a head-level urlBlogWebsite attribute. #
I've posted the source code for this verb, for review -- because a few prolific Drumkit scripters have produced their own versions of this function, and I want to be sure I've got the bases covered. #
Also, I wired this function into the Eye icon, to make it easier to access. #
I was following a discussion in the support group, and reading code that @amit wrote, about matching up with the permalinks that Old School creates from within Drummer. #
Anyway, in the rush to fix the problem with Far East blogs and time zones, in October, something weird slipped through, and it can't be changed now, so I might as well document it. :-)#
Suppose I have a headline, either a singular post or part of a titled post, and I want to, in a Drummer script, generate a permalink to it. #
So first, I have to figure out what the year, month and day is, so I point to the right page. This is done in the user's timezone. That was the tricky part of the October problem. #
Then I have to figure out the permalink, the link to the purple pound sign on the line. Here we use the time in GMT.#
I have posted this as an RFC, and see if people agree, and I might bake some funcitonality in Drummer to smoothe this out. #