Re: OS X: dragging and dropping a file (or folder) onto textadept icon in the dock

From: Vais Salikhov <vsalik....at.gmail.com>
Date: Thu, 12 Feb 2009 16:38:46 -0500

Rob,

Thank you so much for figuring out the finder cache workaround. I will
have a fix for the folder opening by tonight - that shouldn't be a
problem. I will post it here and on the google code issue tracking
system for the project.

Vais

On Feb 12, 2009, at 3:48 PM, Rob <ro....at.web.de> wrote:

>
> Yes, modifying the plist, moving it e.g. to the desktop, then it
> worked.
> Apparently some finder cache needs to be updated. Then you can move it
> back to Applications.
> Dragging a folder does not open it as a 'project' (which would be
> great, I never used the dragging much, but for a folder it would be
> very useful) but gives:
> ...s/textadept.app/Contents/Resources//core/file_io.lua:33: attempt to
> get length of local 'text' (a nil value)
> Most likely this has to be implemented differently.
> Opening a folder doesn't work from the command line either.
>
> Rob
>
> On Feb 12, 8:04 pm, Vais Salikhov <vsalik....at.gmail.com> wrote:
>> Rob, you mean move it to a different location and back after
>> modifying
>> the plist? Also, what do you mean by error for folders?
>>
>> Thanks,
>> Vais
>>
>> On Feb 12, 2009, at 1:59 PM, Rob <ro....at.web.de> wrote:
>>
>>
>>
>>> You're right! I only tried files with already registered extensions.
>>> However, it works for all extensions after you copy the
>>> textadept.app
>>> to a different location. (And back.)
>>> Folders produce an error.
>>
>>> Rob
>>
>>> On Feb 12, 7:07 pm, Vais Salikhov <vsalik....at.gmail.com> wrote:
>>>> Rob, I think it depends on what type of file you drag and drop. If
>>>> the
>>>> file type is associated with textadept in finder, it has always
>>>> worked
>>>> for me as well. For example, if you do "always open with..."
>>>> textadept
>>>> for a file with a .lua extension, the change the association for
>>>> all .lua files in "get info" dialog, you can start dragging and
>>>> dropping other .lua files onto the ta icon, and it accepts it. The
>>>> issue is to be able to drag any file, group of files, or directory
>>>> onto the icon.
>>
>>>> Thanks,
>>
>>>> Vais
>>
>>>> On Feb 12, 2009, at 12:26 PM, Rob <ro....at.web.de> wrote:
>>
>>>>> For me the finder worked - but with or without the additional
>>>>> lines.
>>
>>>>> Rob
>>
>>>>> On Feb 12, 6:55 am, vais <vsalik....at.gmail.com> wrote:
>>>>>> Thank you, Mitchell, but it did not work for me (tried to put
>>>>>> these
>>>>>> two dict entries both at the end and at the beginning of the
>>>>>> array,
>>>>>> rebooted the computer even, removed the icon from the dock and
>>>>>> put it
>>>>>> back, tried with both the dock and finder). Did this work for
>>>>>> anybody
>>>>>> else - perhaps I am missing something?
>>
>>>>>> Vais
>>
>>>>>> On Feb 12, 12:17 am, mitchell <mforal.n....at.gmail.com> wrote:
>>
>>>>>>> Hi,
>>
>>>>>>>> Nope. ige-mac-dock is not feature complete yet. I'm looking
>>>>>>>> into
>>>>>>>> how
>>>>>>>> to handle this on my own.
>>
>>>>>>> At the end of the file types </array> in textadept.app/Contents/
>>>>>>> Info.plist, add
>>
>>>>>>> <dict>
>>>>>>> <key>CFBundleTypeExtensions</key>
>>>>>>> <array>
>>>>>>> <string>*</string>
>>>>>>> </array>
>>>>>>> <key>CFBundleTypeName</key>
>>>>>>> <string>Document</string>
>>>>>>> </dict>
>>>>>>> <dict>
>>>>>>> <key>CFBundleTypeOSTypes</key>
>>>>>>> <array>
>>>>>>> <string>****</string>
>>>>>>> </array>
>>>>>>> <key>CFBundleTypeName</key>
>>>>>>> <string>Document</string>
>>>>>>> </dict>
>>
>>>>>>> Please make a backup first!
>>
>>>>>>> This should enable drag and drop to both the dock and in the
>>>>>>> Finder.
>>
>>>>>>> -Mitchell;
> >
Received on Thu 12 Feb 2009 - 16:38:46 EST

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:37:14 EST