• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Trying Again! Similar path problem - please help!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trying Again! Similar path problem - please help!


  • Subject: Re: Trying Again! Similar path problem - please help!
  • From: Scott Schrader <email@hidden>
  • Date: Thu, 13 Jun 2002 14:55:26 -0700

Thanks for the line by line!

Paul F. Henegan wrote:



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?


Let's break this down: do you want to work with files whose type is ".mov"
or whose name ends with ".mov"?


Probably "property type_list : {"MooV", "MPEG"}" or just "property type: Moov" would be the most extensible, wouldn't it?

list folder: Return the contents of a specified folder


This is a command in the "File Commands : Commands to work with files
without using the Finder" suite of the Standard Additions and its
description.

Where is the list of these commands or the suite of the Standard Additions, to be found? I think I remember seeing them a long time ago.

list folder 'file' -- the alias or file reference to the folder


The command itself with its required argument.

[invisibles boolean] -- List invisible files? (default is true)


An optional argument either true or false, with or without...

Result: a list of Unicode text -- the list of the names of the
items
in the specified folder

Not sure about this at all! :-(


A likely place to begin if you wish to work with the names of the items in
the list ;-)

Ok, I get what each of these mean to a degree now, but don't understand the collective and how it applies, nor how I would even integrate it into my code & run it? And then would this really be the approach to my desired solution?

-- begin script
set movList to {"m1.mov", "m2.mov", "m3.mov"} --to be replaced!
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

--

Regards,

Scott Schrader
Video Integrations
Apple Consultants Network
Apple Product Professional
_______________________________________________
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.

References: 
 >Re: Trying Again! Similar path problem - please help! (From: "Paul F. Henegan" <email@hidden>)

  • Prev by Date: mod dates and OS X? grr.
  • Next by Date: Re: can I do this better? [trim whitespace]
  • Previous by thread: Re: Trying Again! Similar path problem - please help!
  • Next by thread: Re: applescript-users digest, Vol 3 #535 - 17 msgs
  • Index(es):
    • Date
    • Thread