Re: Libraries and effiency
Re: Libraries and effiency
- Subject: Re: Libraries and effiency
- From: Tommy Bollman <email@hidden>
- Date: Thu, 12 Aug 2010 16:13:33 +0200
On 12 Aug 2010, at 15:00, Philip Aker wrote:
> I think I saw on the link for your product that you are doing a lot of stuff to find the default script editor? At least on 10.6 you can use:
That's right, I wrote a general library/unit for finding the LSHandlerRoleAll for a Content Type Or Tag Class, this library will return the default app for most content types or tag classes in the com.apple.LaunchServices property list. Which means it is of general utility.
I didn't know about your easy way, and can only say thanks.
> Also I'm wondering if you would be able to put stuff on the clipboard in a much easier way? Look at <x-man-page://pbcopy> for a tip on how to:
>
> export LANG=en_US;
>
> So that the encoding is consistently usable.
I will definitively consider what I haven't. Thank you.
> On 2010-08-11, at 08:06:30, Tommy Bollman wrote:
>
>> I'm trying to do what you want providing powerful scripts that works within the UI of all 3 editors, maybe I will include Xcode and .applescript files, since I recently have seen that they use libraries with ASOC too.
>
> Thanks Tommy,
>
>
>
> on ASU_GetDefaultScriptEditor()
> tell application "AppleScript Utility" to set dflt to (get default script editor) as text
> return id of application dflt
> end ASU_GetDefaultScriptEditor
>
> Also I'm wondering if you would be able to put stuff on the clipboard in a much easier way? Look at <x-man-page://pbcopy> for a tip on how to:
>
> export LANG=en_US;
>
> So that the encoding is consistently usable.
>
>
>
>> Those scripts are meant to ease the daily work of a scripter, providing access to libraries, by revealing in finder, opening files, creating load statements and listing of handlers, pasting of signatures, pasting of handlers, and at a later stage, I will implement a version control system onto it all, with a snapshot facility primitive but still. There are other small utilities as well, as locking of files and such, which are to come. Most of the scripts will rely on a server which others have access to, hopefully useable from ASOC, for somebody wanting to provide (palettes of floating windows, etc.) I hope for a unified documenting system, like Tetsuro KURITAS to become a standard, and that we all could have one common repository, with at least a small but powerful library of common routines.
>
> Philip Aker
> echo email@hidden@nl | tr a-z@. p-za-o.@
>
> Democracy: Two wolves and a sheep voting on lunch.
>
>
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