Re: Drag and drop into a window
Re: Drag and drop into a window
- Subject: Re: Drag and drop into a window
- From: "H.TOMARU" <email@hidden>
- Date: Mon, 11 Jul 2005 16:22:02 +0900
Thank you for your reply, Emmanuel.
I downloaded Smile and read through documents for Applescript.
One thing I couldn't do was to find code example of drag-and-drop.
Smile nicely implements drag-and-drop feature.
I searched the package contents of Smile but could not find the script
file
that implements actual drag-and-drop, namely "on drop" function
definition.
I have difficulties to fully understand the page
http://www.satimage.fr/software/en/dialog_drag_drop.html
in that I cannot give drag-and-drop feature to a dialog window.
My understanding is that to make a text box drag-and-drop capable I
have to add the
property «class flav»:"hfs " to it. But I don't know how to do this.
I opened object eXpert and add this property in pull down menu but this
property
is not saved.
You seems to be Smile people, could you point me to the script file in
Smile package
that I should consult?
I also have difficulties to edit scripts in Script Window since I
cannot select by mouse
a character or place except in line beginning.
On Jul 11, 2005, at 1:31 AM, Emmanuel wrote:
At 12:18 PM -0400 7/10/05, Hanaan Rosenthal wrote:
There are two things you can do:
1. Use an AppleScript droplet and display the text in TextEdit or
other program.
2. Download the developer tools from apple's developer website and
use AppleScript Studio (Xcode, Interface Builder, etc.) to create a
program.
Actually you can consider a third option. Download Smile, and
customize it for your purposes.
Smile's windows already handle dropped file: dropping inserts the HFS
path, or Posix with the shift key, or the file's content with the cmd
key.
Smile is "tailored", meaning that its objects' behaviors are handled
by AppleScript scripts. So, basically, you can make it into virtually
any application.
If you want to explore that option, visit
<http://www.satimage-software.com>.
Emmanuel
Satimage-software
On Jul 10, 2005, at 10:23 AM, H.TOMARU wrote:
Hello, I want to make an applescript application that has several
windows, one of which accepts
drag and drop from Finder and can get path name of the dragged file.
Are there any skeletonÅ@projects of such applications?
_______________________________________________
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden