Sunday, December 17, 2017

#1 2000-05-07 10:49:16 am

Trash Man
Sanitation Department
Registered: 2005-10-20
Posts: 5336

Drag and Drop Script

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 http://www.jds-designs.com/resex
Any help would be appreciated !
Jason


One mans trash is another mans treasure

Offline

 

#2 2000-05-08 10:11:11 am

Trash Man
Sanitation Department
Registered: 2005-10-20
Posts: 5336

Re: Drag and Drop Script

: 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.

Applescript:

on open fileList -- This is necessary for drop-ability
tell application "SimpleText"
open fileList
activate
end tell
end open


One mans trash is another mans treasure


Filed under: SimpleText

Offline

 

#3 2000-06-14 10:08:33 am

Trash Man
Sanitation Department
Registered: 2005-10-20
Posts: 5336

Re: Drag and Drop Script

: 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


One mans trash is another mans treasure

Offline

 

#4 2000-06-14 10:08:48 am

Trash Man
Sanitation Department
Registered: 2005-10-20
Posts: 5336

Re: Drag and Drop Script

: 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


One mans trash is another mans treasure

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)