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

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.

  • Follow-Ups:
    • Re: Similar path problem - please help!
      • From: Scott Schrader <email@hidden>
  • Prev by Date: Re: URL Access (Re:...sort of)
  • Next by Date: Re: applescript and graphics programs
  • Previous by thread: Re: Similar path problem - please help!
  • Next by thread: Re: Similar path problem - please help!
  • Index(es):
    • Date
    • Thread