• 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
Help! My Applescript no longer works in Panther
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help! My Applescript no longer works in Panther


  • Subject: Help! My Applescript no longer works in Panther
  • From: Michael McLaughlin <email@hidden>
  • Date: Tue, 13 Jan 2004 11:18:36 -0500
  • Organization: The MITRE Corporation

Ever since upgrading from Jaguar to Panther, the following script (drag-and-drop application) no longer works. It appears that TEXT cannot be converted to file types or creator types. Is there some missing cast not heretofore required?

TIA.

***** the script *****

on open (theList)
tell application "Finder"
set dialogResult to display dialog "New File Type: " buttons "OK" default button 1 default answer "TEXT"
set fileType to text returned of dialogResult
set dialogResult to display dialog "New Creator Code: " buttons "OK" default button 1 default answer "R*ch"
set creatorType to text returned of dialogResult
repeat with theItem in theList
if class of theItem is file then
set locked of theItem to false
end if
set file type of theItem to fileType
set creator type of theItem to creatorType
end repeat
end tell
end open

--
Mike McLaughlin
_______________________________________________
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: Help! My Applescript no longer works in Panther
      • From: Shane Stanley <email@hidden>
    • Re: Help! My Applescript no longer works in Panther
      • From: Emmanuel <email@hidden>
    • Re: Help! My Applescript no longer works in Panther
      • From: Gnarlodious <email@hidden>
  • Prev by Date: RE: Indesign Question
  • Next by Date: Re: getting users
  • Previous by thread: [ANN] iList 1.6.4.1
  • Next by thread: Re: Help! My Applescript no longer works in Panther
  • Index(es):
    • Date
    • Thread