Re: LibraryLister
Re: LibraryLister
- Subject: Re: LibraryLister
- From: Tommy Bollman <email@hidden>
- Date: Mon, 2 Aug 2010 05:23:10 +0200
Hello
I have written a script for listing the contents of the current file, which supports all the editors in one script.
The script can be found here < http://macscripter.net/viewtopic.php?id=33695 >.
On 1 Aug 2010, at 22:43, Tommy Bollman wrote:
> Hello.
>
> I discovered that it was very naive in interpreting block comments, when I started to comment a file differently.
> Apologies for that. I have updated the block comment parsing code to be more intelligent.
>
> It is still somewhat naive:
>
> It doesn't detect block comment tags that are within strings, which means that if you have just as start or end block comment tag in a string between two real comments, or before or or after one, then the block comments will be perceived as unbalanced and it may lead to inaccuracies. This is the place to look if your handlers or script objects doesn't turn up in the list of handlers.
>
> I you have block comments in strings, your last resort is to declare a balancing string with the missing tag in, within
> that same scope of code.
>> The LibraryLister can still be found here: < http://macscripter.net/viewtopic.php?id=33712 >
>
>
> There will soon come an option to get the list of one of the files currently buffered in the LibraryLister. I'm writing a installer script that installs support for the editors that you have, so that we all get away with just one script for both or all editors. I prefer it that way when I have to maintain it, it is also a benefit for you, since there will be just one place to look for the script, and just one key binding.
> As soon as that is done, and some work for money then the list buffer option should be there.
>
> On 1 Aug 2010, at 02:32, Tommy Bollman wrote:
>
>> Hello.
>>
>> I updated the LibrarLister to be more silent when nothing is found, as it still was in a kind of debug state.
>>
>> I discovered a bug and updated the documentation with it.
>>
>> Bugs
>> You will get a mismatch if you have literals like "\t" or "\r" or "\n" in your code. That is due to osadecompile which translates the literals into the real thing. The reported position after one such character will be on less than reality, and so on for the next encountered literals. If you want and need correct positions, then you have to find alternatives to these literals. This will not be fixed.
>>
>> I have updated all the handlers for listing the current file.
>>
>> The LibraryLister can still be found here: < http://macscripter.net/viewtopic.php?id=33712 >
>>
>> Best regards
>>
>>
>>
>> Tommy Bollman
>> --------------------------------------------------------------------------------------------------
>> Mollison's Bureaucracy Hypothesis:
>> If an idea can survive a bureaucratic review
>> and be implemented it wasn't worth doing.
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> AppleScript-Users mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>> Archives: http://lists.apple.com/archives/applescript-users
>>
>> This email sent to email@hidden
>
> Best regards
>
>
>
> Tommy Bollman
> --------------------------------------------------------------------------------------------------
> Mollison's Bureaucracy Hypothesis:
> If an idea can survive a bureaucratic review
> and be implemented it wasn't worth doing.
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
>
Best regards
Tommy Bollman
--------------------------------------------------------------------------------------------------
Mollison's Bureaucracy Hypothesis:
If an idea can survive a bureaucratic review
and be implemented it wasn't worth doing.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden