• 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
(no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(no subject)


  • Subject: (no subject)
  • From: David Crowe <email@hidden>
  • Date: Sat, 14 Feb 2004 13:59:49 -0700

If I use the following line in an AppleScript:

tell me to set theFileList to navchoose object with prompt
"Select files to print" starting at (theFile as alias) with multiple
files


I get the error:


Expected "given", "with", "without", other parameter name, etc. but
found plural class name.

This is due to the "with multiple files". Substituting another option
(e.g. "with show packages") does not generate this error.

This is probably due to AppleScript interpreting "files" as a class
name. How do I protect it from doing this?

This is within a Finder tell block, which may be the problem. Moving
it outside would mean rewriting a lot of the script (not a big deal
if that's necessary).

- David Crowe
_______________________________________________
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: (no subject)
      • From: Michael Terry <email@hidden>
    • Re: (no subject)
      • From: Peter Fischer <email@hidden>
    • Re: (no subject)
      • From: Michelle Steiner <email@hidden>
    • Re: (no subject)
      • From: Graff <email@hidden>
  • Prev by Date: Re: delay 1 millisecond in Panther
  • Next by Date: Re: do shell script (grep) AppleScript error
  • Previous by thread: Re: do shell script (grep) AppleScript error
  • Next by thread: Re: (no subject)
  • Index(es):
    • Date
    • Thread