Re: ApplescriptObjC Drag and Drop Table
Re: ApplescriptObjC Drag and Drop Table
- Subject: Re: ApplescriptObjC Drag and Drop Table
- From: Shane Stanley <email@hidden>
- Date: Fri, 22 Jan 2016 10:06:57 +1100
On 22 Jan 2016, at 4:58 AM, Simon, Garry <email@hidden> wrote:
>
> Hello, I have a question concerning ApplescriptObjC that is either impossible to answer, or I am really bad at finding existing solutions. Here's what I need help with:
> 1. I need to create a table that will accept files dropped onto it, and list them in the table.
> 2. I need the ability to reorder files in the table.
> 3. I need the files to be acted upon by a different function when a button is pressed, and the files would need to be acted upon in the order that they are listed in the table. in other words, the file paths would need to be copied out of the table in the order that they are listed so that I could do some additional work with them.
Is that all you need? I mean, are you talking a table with a single column?
>
> Here's what I've found so far by following Shane Stanley's "ApplescriptObjC Explored" books and by searching the internet:
> 1. I've found how to create a table and populate it when an app is launched.
> 2. I've found that it's possible to reorder the items listed in a table.
> 3. I've found it's possible to drag entries from one table to another.
> 4. I've found that selected items in a table can be acted upon.
>
> Here's what the internet turned up:
> 1. Questions very similar to mine have been asked many times.
> 2. Many of the questions remain unanswered.
> 3. When they are answered, the answers are incomplete, and even though they fill in the missing pieces for the people who originally asked the questions, they don't contain enough information for me to solve my problem.
The problem is that what you're asking for varies from complex to very complex, depending on the finer details. Tables are complicated things, and there's no one simple solution -- there are different ways of setting up tables, and different ways of dealing with them. It's become a bit more difficult because the preferred way of building tables has changed. (I've spent the past couple of weeks working on a table-based project in Objective-C, and believe me, there are plenty of wrinkles.)
Having said that, there are threads at macscripter.net that have covered at least reordering.
>
> I'm not a computer programmer, just a corporate employee who learned Applescript, then FaceSpan, then with some difficulty Applescript Studio, and now with a great deal of difficulty ApplescriptObjC. It would be awesome if someone could come up with a step by step guide to accomplishing what I outlined above. I think many people would benefit.
It would be awesome, but I fear it's unlikely to happen. It was on my list of things to do in the next edition of my now-abandoned book.
Having said all that, can you describe your project in more detail, and what you have tried? We might be able to help here.
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
_______________________________________________
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