| View previous topic :: View next topic |
| Author |
Message |
NovaScotian
Joined: 18 Feb 2007 Posts: 2072
|
Posted: Sun Jul 22, 2007 11:38 pm Post subject: |
|
| The script goes through all of the tags in every entry that contains p: in its tags. Multiple or not. Did you try it? It won't change tags that don't start with p: or P: |
|
| Back to top |
|
cruising
Joined: 02 Apr 2007 Posts: 27
|
Posted: Mon Jul 23, 2007 12:47 am Post subject: |
|
| NovaScotian wrote: | | The script goes through all of the tags in every entry that contains p: in its tags. Multiple or not. Did you try it? It won't change tags that don't start with p: or P: |
It works as intended. My mistake reading the code. It didn't add a new prefix - but does the job.
Thanks again! |
|
| Back to top |
|
NovaScotian
Joined: 18 Feb 2007 Posts: 2072
|
Posted: Mon Jul 23, 2007 2:28 pm Post subject: A general-purpose tag changer |
|
I missed (in your first post) that you wanted to replace the colon with a dash. If you've run the script, I can't undo that, but this script allows you to choose a folder (or folders holding command down), and add to or replace the tags in place.
| Code: | tell application "Journler"
set F to name of folders -- get all the folders in Journler (not Trash)
-- build the choose from list display
-- present the list from which to choose
set mF to choose from list F with prompt "Hold Command down to choose multiple folders" with multiple selections allowed
-- ask for the tag names and whether to add to or replace current tags
set {T, B} to {text returned, button returned} of (display dialog "Enter the tag text. To add more than one tag, separate them with comma-space" default answer "" buttons {"Cancel", "Add to Tags", "Replace Tags"})
-- build a list from the text returned from the query
set rep to false
set tid to AppleScript's text item delimiters
set AppleScript's text item delimiters to ", "
set T to text items of T -- a list of the parts between ", "
set AppleScript's text item delimiters to tid
if B contains "Replace" then set rep to true
-- make the changes in the entries affected.
repeat with someF in mF
set E to entries of folder someF -- get the entries for each folder
repeat with I in E -- grind thru each one
if rep then -- replace current tags
set tags of I to T
else -- add to current tags
set oTags to tags of I
set tags of I to oTags & T
end if
end repeat
end repeat
save -- save the Journal.
end tell |
|
|
| Back to top |
|
dcharti
Joined: 23 May 2007 Posts: 28 Location: Westminster, CO
|
Posted: Mon Jul 23, 2007 10:10 pm Post subject: |
|
| I'm not entirely positive yet, but it seems like this new tagging system won't allow me to capitalize tags. I would like to be able to, as I sometimes write posts about 37signals' Backpack and would like to be able to differentiate those from anything I might tag as just a regular 'backpack' in the future. Even when I enter a fully capitalized tag like TUAW, Journler auto-lowercases it. |
|
| Back to top |
|
wysiwyg
Joined: 30 Jul 2006 Posts: 11
|
Posted: Tue Jul 24, 2007 4:45 am Post subject: |
|
Ok. That's it. I had enough freeware. I'm donating 20 bucks right now. I can't stand looking the guy do this great piece of software and receive nothing for it. Man, the tags really got me.
Oh, one question: is there a way to see all the tags assigned? If not, i'll leave that as a suggestion, maybe something like Tagbot inside Journler. And it would be great if the tags could be saved in spotlight comments too.
Thanks again. |
|
| Back to top |
|
luftikus143
Joined: 07 Feb 2007 Posts: 35
|
Posted: Tue Jul 24, 2007 6:27 am Post subject: |
|
I get this error:
"Can't trimBoth: Can't trimStart: Can't make character 1 of "" into type string."
when running the script. For some of the entries it seemed to have worked nevertheless, but not for all...
P.S.: My delimiter is a comma (plus a space). |
|
| Back to top |
|
cruising
Joined: 02 Apr 2007 Posts: 27
|
Posted: Tue Jul 24, 2007 11:01 am Post subject: |
|
| luftikus143 wrote: | I get this error:
"Can't trimBoth: Can't trimStart: Can't make character 1 of "" into type string."
when running the script. For some of the entries it seemed to have worked nevertheless, but not for all...
P.S.: My delimiter is a comma (plus a space). |
I found that occurs when I have an old tag (new comment field) that ends with your delimiter followed by nothing else. |
|
| Back to top |
|
luftikus143
Joined: 07 Feb 2007 Posts: 35
|
Posted: Tue Jul 24, 2007 11:09 am Post subject: |
|
Ah... yes, actually I had a couple of URLs in that field from the web-import... That's why then...
Thanks! |
|
| Back to top |
|
luftikus143
Joined: 07 Feb 2007 Posts: 35
|
Posted: Wed Jul 25, 2007 2:33 pm Post subject: Comments - what for now? |
|
| Hmmm... I am not quite sure if I understand what the column "comments" is for now. I mean, I have my tags (somewhere, hidden...), using the keywords which I've used before in the the "other" field. Now, that I fill in the "tag" field, my "comments" stay empty. Is it ment to fill it with some other stuff, say: the URL where I took the pdf-doc from? I don't really see the use of having to different fields now, serving (at least at the surface) quite some similar needs. But please, enlighten me - I am really keen on seeing how you guys use Journler! |
|
| Back to top |
|
jkr
Joined: 14 Sep 2006 Posts: 27 Location: New York, NY
|
Posted: Fri Jul 27, 2007 3:00 am Post subject: TAGS! YESSSSS! |
|
| Thanks Phil, this is so amazing. Can't wait to see the cloud implemented at some point as well! I love tags (and yes, it does add significant value to the software with very little intrusion into the existing UI as far as I am concerned) and thanks especially for the script that makes the shift so much easier for those of us who used keywords before as "tags"... |
|
| Back to top |
|
bosx
Joined: 02 Apr 2007 Posts: 26
|
Posted: Sat Jul 28, 2007 7:08 pm Post subject: Alphabetical tags and speeding up ...? |
|
First, thanks for the update! The tag implementation is nice.
I don't know if someone mentioned this yet -- but I think tags should be automatically alphabetized in the column field and header.
Perhaps that's on the list ... just thought I'd mention it though ...
Also, would just like to see the comments field in it's own separate header, or even better in the resource area -- where I could add a paragraph of commentary if desired and see all at once. And it could be toggled open or closed as any other resource. Suggestion ...
And is there anyway to speed up Journler? I notice it takes a bit of time to create new entries -- and when dragging URLs from Safari (but much more so with new entry creation directly within Journler).
I'm using an iBook, g4. However on my iMac it's fairly snappy -- but I do wish there was a way to get the entry creation to be sped up. Right now the quickest way to enter info is with QuickSilver applescript.
I believe each time journler creates an entry it has to calculate which folders it "belongs" in, and what entries are linked to it right? Can that be delayed or run as a background process -- so it can speed things up a bit -- if that is what causes the "lag time" of several seconds to create an entry? Perhaps it could be a preference option to calculate associated smart folders and linked entries instantly or with a user desired period ...? The more smart folders one has, does this delay the entry creation process ...? This would appear to be an issue in not just the beta, but in any previous version if I'm not mistaken.
Thanks for considering my thoughts ...
Jeff |
|
| Back to top |
|
unitethenations
Joined: 16 Dec 2006 Posts: 18
|
Posted: Fri Aug 03, 2007 2:27 am Post subject: Delete Comments |
|
How do I delete all the old comments?
Sorry, I don't know how to program in applescript, and the script that someone else posted did not work. |
|
| Back to top |
|
NovaScotian
Joined: 18 Feb 2007 Posts: 2072
|
Posted: Fri Aug 03, 2007 6:05 pm Post subject: |
|
Copy this code to your Script Editor and click the compile button in its toolbar. If it doesn't complain, it's ready to run. With your Journler window open, a single tab showing, and no single folder selected, run the script. No more comments. It is not undoable.
| Code: | tell application "Journler"
set E to entries of folder "Journal"
repeat with I in E
set comments of I to ""
end repeat
end tell |
Tested with the latest beta (I don't have anything else to test with), but should work with any version that supports real tags and comments. |
|
| Back to top |
|
unitethenations
Joined: 16 Dec 2006 Posts: 18
|
Posted: Fri Aug 03, 2007 8:47 pm Post subject: |
|
| thank you |
|
| Back to top |
|
justG
Joined: 21 Jan 2007 Posts: 542 Location: LI, NY, US
|
Posted: Tue Aug 07, 2007 8:39 pm Post subject: Re: Alphabetical tags and speeding up ...? |
|
| luftikus143 wrote: | | Hmmm... I am not quite sure if I understand what the column "comments" is for now. |
Whatever you want it to be for. =) I no longer use it.
| bosx wrote: | | I don't know if someone mentioned this yet -- but I think tags should be automatically alphabetized in the column field and header. |
I don't like knocking other people's requests, so I'll just add a massive, resounding "ACK!" and ask that if that's implemented, it's an option. =) I and many others are pretty.. uh.. *searches for polite word for "anal," gives up* about our tags, and we kicked up quite a fuss when del.icio.us introduced a bug that messed with the tags' order. Personally, I tag my items general > specific, and alphabetisation has nothing to do with it. I'd be pretty miffed if my software took it upon itself to change my tag order. =] |
|
| Back to top |
|
|