• 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: Having trouble with a QuickTime script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Having trouble with a QuickTime script


  • Subject: Re: Having trouble with a QuickTime script
  • From: Emmanuel <email@hidden>
  • Date: Wed, 19 Sep 2001 22:21:22 +0200

At 21:00 +0200 19/09/01, Argyl L. Dickson, Jr. wrote:

>The finder got an error and the file that is referenced in the script doesn't
>understand the open image sequence message.

>to createMovie(referenceName, referenceFolder, targetFolder, movieNumber,
>frameRateVar)
> set movieNumber to movieNumber + 1
> tell application "Finder"
> set movieFolder to folder (referenceName & movieNumber as text) of
>targetFolder
> set firstFile to file 1 of movieFolder
> end tell
> tell application "QuickTime Player"
> open image sequence firstFile frames per second frameRateVar
> end tell
>end createMovie

I did not check specifically, but you are passing to QTPlayer a reference
to a file under a form which belongs to the Finder (something like: file
"FileName" of folder "FolderName" of disk "Macintosh HD" of application
"Finder"). I would advise to make it AppleScript-universal by coercing it
into the "alias" type.

Between your two "tell ..." wrappers, you could insert "set firstFile to
firstFile as alias". Just a thought - not a tested one.

Emmanuel


References: 
 >Having trouble with a QuickTime script (From: "Argyl L. Dickson, Jr." <email@hidden>)

  • Prev by Date: RE: Convert any list to a table?
  • Next by Date: [Slightly OT] Sort algorithms
  • Previous by thread: Having trouble with a QuickTime script
  • Next by thread: RE: Having trouble with a QuickTime script
  • Index(es):
    • Date
    • Thread