• 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: Movie Snapshot Script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Movie Snapshot Script


  • Subject: Re: Movie Snapshot Script
  • From: Walter Ian Kaye <email@hidden>
  • Date: Sat, 20 Sep 2003 16:54:01 -0700

At 04:35p -0700 09/20/2003, alex black didst inscribe upon an electronic papyrus:

Hi all

I'm having trouble with a movie snapshot script I'm doing - the idea is to
take 5 jpegs from the current open movie in quicktime and save them to a
directory.

I can get GraphicConverter to save if I type out a full path, but a variable
with the exact same value doesn't work, I get a -1 error.

Not sure about the -1 error number, but you may be running into a data type mismatch. I discovered that GC does not like styled text, so you have to unstyle it. Try this routine:

on RemoveStyles(t)
local t, rec
try
set rec to t as record
set t to <<class ktxt>> of rec
end try
t
end RemoveStyles

NOTE! Replace << and >> with Option-\ and Option-Shift-\ respectively.

So instead of sending 'myvar' to GC, send 'my RemoveStyles(myvar)'.

HTH,
-Walter
_______________________________________________
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: Movie Snapshot Script
      • From: alex black <email@hidden>
References: 
 >Movie Snapshot Script (From: alex black <email@hidden>)

  • Prev by Date: Movie Snapshot Script
  • Next by Date: Re: Movie Snapshot Script
  • Previous by thread: Movie Snapshot Script
  • Next by thread: Re: Movie Snapshot Script
  • Index(es):
    • Date
    • Thread