This will seem like a strange question, but how do I write an applescript to open a drag and dropped file with a particular application. I know you can do this with an alias, but I have a dock I built with facespan that is used like a launcher. It runs applescripts that just open programs on my drive. I would love to add drag and drop support, and since the buttons on the dock have no attachment to the actual application like an alias does, I need to add some drag and drop script…
For a view of my dock [url=http://www.jds-designs.com/resex]http://www.jds-designs.com/resex[/url]
Any help would be appreciated !
Jason
: This will seem like a strange question, but how do I
: write an applescript to open a drag and dropped file
: with a particular application.
Here’s an example for a drag and drop app that opens a text file in simpletext. Save the script as app and drag a text file to its icon.
on open fileList -- This is necessary for drop-ability
tell application "SimpleText"
open fileList
activate
end tell
end open
: This will seem like a strange question, but how do I
: write an applescript to open a drag and dropped file
: with a particular application. I know you can do this
: with an alias, but I have a dock I built with facespan
: that is used like a launcher. It runs applescripts
: that just open programs on my drive. I would love to
: add drag and drop support, and since the buttons on
: the dock have no attachment to the actual application
: like an alias does, I need to add some drag and drop
: script…
: For a view of my dock
: Any help would be appreciated !
: Jason
jason, will you please repost the link to your dock so i can see it?
thanks!
matt
: This will seem like a strange question, but how do I
: write an applescript to open a drag and dropped file
: with a particular application. I know you can do this
: with an alias, but I have a dock I built with facespan
: that is used like a launcher. It runs applescripts
: that just open programs on my drive. I would love to
: add drag and drop support, and since the buttons on
: the dock have no attachment to the actual application
: like an alias does, I need to add some drag and drop
: script…
: For a view of my dock
: Any help would be appreciated !
: Jason
jason, will you please repost the link to your dock so i can see it?
thanks!
matt