Re: Add Droplet functionality to Applet...(SUCCESS)
Re: Add Droplet functionality to Applet...(SUCCESS)
- Subject: Re: Add Droplet functionality to Applet...(SUCCESS)
- From: Matthew Broms <email@hidden>
- Date: Tue, 06 Jan 2004 16:31:33 -0500
HIP, HIP, HURRAH - it works! This was one small step for Tim and one giant
leap for Matt_kind :-).
I got this working as per directed. Thank you for sticking through this and
giving me the deeper wisdom that was required to solve this (and ignoring my
temper tantrum). I'm not a "programmer" and haven't used Xcode prior to
this project, so this action was beyond me. I haven't acquired 30,000 foot
view/understanding of Xcode. I'm still in then myopic AS view, but learning
fast. The settings didn't exist whatsoever, so I had to create them, not
just modify them. It did require a log out and log in before it started
working normally though as you hinted. BTY, holding down the
'option-command' keys did work - I tried this before making any changes.
And thanks to Kerry for the added explanation which helped me find this
element. You said this information was stored in the info.plist. I have a
general understanding of the info.plist (a property list for an
application), but not how to view/edit/create/utilize them within Xcode.
Curious, I double-clicked the 'InfoPlist.strings' of the project, but didn't
see any such settings stored there as you described. I guess this is not
the same place you were speaking of.
I have one follow-up question trying to evoke a similar behavior. I want to
drag the same file onto the launched window of my app to trigger the same
action (aka an AAC/MP3 file dragged onto the iTunes window initiates an
action). I can't figure out if it's just choosing the correct event handler
in Interface Builder (and if so which one) or something more complex.
Matt
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
From: Tim Bumgarner <email@hidden>
>
Date: Mon, 5 Jan 2004 20:08:25 -0500
>
To: Matthew Broms <email@hidden>
>
Cc: AppleScript-Users list <email@hidden>
>
Subject: Re: Add Droplet functionality to Applet...
>
>
Hi Matthew,
>
>
The problem with the droplet not accepting the drops is likely due to
>
the fact that your droplet is not set to accept every file type. If you
>
look at a project that is created as an AppleScript Droplet and you
>
double click on the target icon which opens the target editor you will
>
find that under the Document Types section the following entry:
>
>
Name: DocumentType
>
Extensions: "****"
>
MIME Types:
>
OS Types: "****"
>
Icon File:
>
Document Class:
>
>
The "****" entry is a wild card for all file types. If you wanted your
>
droplet to only accept say image files, you could change the extension
>
to "jpg" or "jpg", "gif" and that will filter what is allowed as a
>
drop.
>
>
So, you will need to add that entry to your project in order to get
>
this to work. Once you build the application, you may need to log out
>
and back in to the system in order for the Finder to pick up this
>
change.
>
>
Hopefully this makes sense.
>
>
Tim Bumgarner
>
AppleScript Engineering
>
>
P.S. I believe that if you hold the Option and Command keys down while
>
dragging the item in the Finder to your application that it will force
>
the application to accept the drop.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.