Journler development has ended. Sprouted is shutting down. User support will continue indefinitely.
Read more

Community

Journler 2.5.4 beta 2 - Right Proper Tags (RPT)
Goto page Previous  1, 2, 3, 4, 5  Next
Post new topic   Reply to topic journler.com Forum Index » Journler Beta Testing
View previous topic :: View next topic  
Author Message
NovaScotian



Joined: 18 Feb 2007
Posts: 2072

PostPosted: Sun Jul 22, 2007 11:38 pm    Post subject: Reply with quote
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
View user's profile Send private message
cruising



Joined: 02 Apr 2007
Posts: 27

PostPosted: Mon Jul 23, 2007 12:47 am    Post subject: Reply with quote
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
View user's profile Send private message
NovaScotian



Joined: 18 Feb 2007
Posts: 2072

PostPosted: Mon Jul 23, 2007 2:28 pm    Post subject: A general-purpose tag changer Reply with quote
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
View user's profile Send private message
dcharti



Joined: 23 May 2007
Posts: 28
Location: Westminster, CO

PostPosted: Mon Jul 23, 2007 10:10 pm    Post subject: Reply with quote
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
View user's profile Send private message Visit poster's website
wysiwyg



Joined: 30 Jul 2006
Posts: 11

PostPosted: Tue Jul 24, 2007 4:45 am    Post subject: Reply with quote
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
View user's profile Send private message
luftikus143



Joined: 07 Feb 2007
Posts: 35

PostPosted: Tue Jul 24, 2007 6:27 am    Post subject: Reply with quote
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
View user's profile Send private message
cruising



Joined: 02 Apr 2007
Posts: 27

PostPosted: Tue Jul 24, 2007 11:01 am    Post subject: Reply with quote
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
View user's profile Send private message
luftikus143



Joined: 07 Feb 2007
Posts: 35

PostPosted: Tue Jul 24, 2007 11:09 am    Post subject: Reply with quote
Ah... yes, actually I had a couple of URLs in that field from the web-import... That's why then...

Thanks!
Back to top
View user's profile Send private message
luftikus143



Joined: 07 Feb 2007
Posts: 35

PostPosted: Wed Jul 25, 2007 2:33 pm    Post subject: Comments - what for now? Reply with quote
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
View user's profile Send private message
jkr



Joined: 14 Sep 2006
Posts: 27
Location: New York, NY

PostPosted: Fri Jul 27, 2007 3:00 am    Post subject: TAGS! YESSSSS! Reply with quote
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
View user's profile Send private message
bosx



Joined: 02 Apr 2007
Posts: 26

PostPosted: Sat Jul 28, 2007 7:08 pm    Post subject: Alphabetical tags and speeding up ...? Reply with quote
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
View user's profile Send private message
unitethenations



Joined: 16 Dec 2006
Posts: 18

PostPosted: Fri Aug 03, 2007 2:27 am    Post subject: Delete Comments Reply with quote
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
View user's profile Send private message
NovaScotian



Joined: 18 Feb 2007
Posts: 2072

PostPosted: Fri Aug 03, 2007 6:05 pm    Post subject: Reply with quote
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
View user's profile Send private message
unitethenations



Joined: 16 Dec 2006
Posts: 18

PostPosted: Fri Aug 03, 2007 8:47 pm    Post subject: Reply with quote
thank you
Back to top
View user's profile Send private message
justG



Joined: 21 Jan 2007
Posts: 542
Location: LI, NY, US

PostPosted: Tue Aug 07, 2007 8:39 pm    Post subject: Re: Alphabetical tags and speeding up ...? Reply with quote
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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic All times are GMT + 1 Hour
Goto page Previous  1, 2, 3, 4, 5  Next
Page 3 of 5
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2006-2007 Journler. Some rights reserved       Contact: Phil | Webmaster
website design by Agee Design