Re: First time applescripter
Re: First time applescripter
- Subject: Re: First time applescripter
- From: Michelle Steiner <email@hidden>
- Date: Tue, 21 Nov 2000 14:08:47 -0800
On 11/21/00 1:46 PM, Trevor DeVore <email@hidden> wrote
>
I am just starting to look at AppleScript and was looking for some
>
information. To test I wanted to make a little script that I could drop
>
onto a QuickTime movie and it would open the file in QuickTimePlayer and
>
display a little alert box with the duration, or better yet, copy the
>
duration to the clipboard. I have come part way and am now stuck. Here is
>
what I have so far:
>
tell applciation "QuickTime Player"
>
set theDuration to the duration
>
--ideally I would like to copy theDuration to the clipboard
>
display dialog theDuration
>
end tell
>
>
Works great if I have the Script editor open and the QT file open in the
>
Player. I can't figure out how to make a droplet though. Could somebody
>
point me in the right direction?
A droplet works by dropping a file onto it, not it onto the file. So,
you would drop the movie file onto the droplet, and the droplet would be
prgrammed to tell quicktime player to open the movie.
To create a droplet, you need to write in this format.
on open
--do the stuff
end open
Then when you save the file as an application, it will be a droplet
instead of an applet.
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | Hard as it may be to believe, my |
| email@hidden | life has been based on a true story. |
----------------------------------------------------------------------