Re: Similar path problem - please help!
Re: Similar path problem - please help!
- Subject: Re: Similar path problem - please help!
- From: JollyRoger <email@hidden>
- Date: Tue, 11 Jun 2002 06:54:49 -0500
On 6/10/2002 9:55 PM, "Scott Schrader" <email@hidden> wrote:
>
Appreciate your help on this!
>
>
What I wanted originally to do as a simpler part of a bigger script is
>
choose a folder then open any document with the .mov extension. I was
>
trying to take it one step at a time, by getting the folder to work
>
first for which yours works. Thanks! Now how would I get it to choose
>
the file type of .mov?
>
>
>
>
> -- begin script
>
> set movList to {"m1.mov", "m2.mov", "m3.mov"}
>
> set movFolder to ((choose folder) as string) -- or replace with path to your
>
> folder
>
> repeat with nextMovName in movList
>
> set nextMovPath to movFolder & nextMovName
>
> tell application "QuickTime Player"
>
> set mov to open (alias nextMovPath)
>
> end tell
>
> end repeat
>
> -- end script
>
>
Scott,
Note: It would be better for you to ask these questions on the list, not
just to me. That way if I am busy (which is often the case), someone else
may be able to help you.
To get a listing of files, use the "list folder" command from the Standard
Additions scripting addition:
list folder: Return the contents of a specified folder
list folder 'file' -- the alias or file reference to the folder
[invisibles boolean] -- List invisible files? (default is true)
Result: a list of Unicode text -- the list of the names of the items
in the specified folder
JR
_______________________________________________
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.