• 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: Can't set creator type
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't set creator type


  • Subject: Re: Can't set creator type
  • From: Michelle Steiner <email@hidden>
  • Date: Mon, 23 Feb 2004 19:10:21 -0700

On Feb 23, 2004, at 6:39 PM, Mr Tea wrote:

Why does this not work?

This might explain it.

set fList to selection of application "Finder"
repeat with f in fList
set f to f as alias
tell application "Finder"
set theCode to creator type of f
activate
log (class of theCode)

--> (*string*)

display dialog "Creator" default answer theCode returning dRes
if the text returned of dRes is not "" then
set theCode to the text returned of dRes
log (class of theCode)

--> (*Unicode text*)

set creator type of f to (theCode as text)
end if
end tell
end repeat

--
You can not change the world without perforce changing yourself.
_______________________________________________
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:
    • Stupid, Stupid Text Features [Was: Can't set creator type]
      • From: Mr Tea <email@hidden>
References: 
 >Can't set creator type (From: Mr Tea <email@hidden>)

  • Prev by Date: Re: can't make document
  • Next by Date: Re: can't make document
  • Previous by thread: Re: Can't set creator type
  • Next by thread: Stupid, Stupid Text Features [Was: Can't set creator type]
  • Index(es):
    • Date
    • Thread