• 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
Set creator type
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Set creator type


  • Subject: Set creator type
  • From: email@hidden (Guillaume Iacino)
  • Date: Sun, 24 Feb 2002 16:52:52 -0800

Hello,

I am still unfortunately a newbie and I can't figure it out what is wrong in my script.

Basically I am trying to set the creator and file type to all the files that finish by ".mov".


My script is:
set startFolder to choose folder with prompt "Select starting folder:"
set theList to FindFile in_folder (startFolder) name_ends_with ".mov" with subfolders

tell application "Finder"
repeat with FileName in theList
-- beep
set the creator type of FileName to "TVOD"
set the file type of FileName to "MooV"
end repeat
end tell

I have an error in the set creator line, saying that it can't make the first item returned of theList as an item. I do not understand why I am getting this error.
theList does return a list of items.

Thank you in advance for your help.

--
/*
Guillaume Iacino

Product Support Manager - Totally Hip Software
201 - 1040 Hamilton Street Vancouver, B.C. Canada V6B 2R9
Tel:604.685.6525 x402 : Fax:604.685.4057

<http://www.blueabuse.com/> <http://www.liveslideshow.com>
<http://www.totallyhip.com/> <http://www.totallyhip.com/lsdn/>
*/
_______________________________________________
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: Set creator type
      • From: Andy Wylie <email@hidden>
  • Prev by Date: Mac OS X/Mac OS 9 Long File Name Conversion w/AppleScript?
  • Next by Date: HTML to PDF Mac OS X..
  • Previous by thread: Re: Set "to" not "sender" in Outlook express
  • Next by thread: Re: Set creator type
  • Index(es):
    • Date
    • Thread