Re: Similar path problem - please help!
Re: Similar path problem - please help!
- Subject: Re: Similar path problem - please help!
- From: Scott Schrader <email@hidden>
- Date: Tue, 11 Jun 2002 14:10:57 -0700
JollyRoger wrote:
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
Again, thanks to Corny, and JollyRoger for their help in this final result
To get a listing of files, use the "list folder" command from the Standard
Additions scripting addition:
I know I've heard this and probably seen it, but it's that forest for
the trees syndrome. :-\ That is Standard Additions.
I actually started to approach this with a rip off of one of the other
QT 5.0.1 scripts found at apple.com/applescript.
I just started with:
property type_list : {"MooV", "MPEG"}
property extension_list : {"mov", "mpg", "mpeg"}
and know now I must substitute the first line above out (set movList to
{"m1.mov", "m2.mov", "m3.mov"}) and create some kind of loop or repeat
statement that might even be utilized within the repeat that's already
in the script above, which is where as a beginner I'm already feeling
somewhat lost.
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
Not sure about this at all! :-(
--
Regards,
Scott Schrader
Video Integrations
_______________________________________________
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.