• 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
Trying Again! Similar path problem - please help!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Trying Again! Similar path problem - please help!


  • Subject: Trying Again! Similar path problem - please help!
  • From: Scott Schrader <email@hidden>
  • Date: Wed, 12 Jun 2002 18:52:44 -0700

Since there was no response I'm trying again, however I'd love to get an explanation from Jolly R. on the stuff at the bottom that he gave me a few days ago.

Scott Schrader wrote:

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.

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

  • Prev by Date: Re: can I do this better?
  • Next by Date: RE: GraphicConverter Scripting question
  • Previous by thread: Re: Similar path problem - please help!
  • Next by thread: Re: Trying Again! Similar path problem - please help!
  • Index(es):
    • Date
    • Thread