• 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: Variable declaration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Variable declaration


  • Subject: Re: Variable declaration
  • From: Michelle Steiner <email@hidden>
  • Date: Mon, 21 Jun 2004 09:44:30 -0700

On Jun 21, 2004, at 5:50 AM, BADRINATH, NANDINI wrote:

> the script gives the error -- "cant make every file of " folder
> path" into a string"

It would help to know at which line it gives the error.

I don't have Quark Express, so I had the repeat loop tell the Finder to
select each file in order, and it worked without error.

> How do i declare "theFile" (in repeat) as list?

Um, you don't want "theFile" to be a list.

As an aside, the script is unnecessarily complex. Instead of this:

> set theFiles to (name of every file in folder folderPath) as list
> repeat with theFile in theFiles
> set filePath to folderPath & theFile

Try this:

set theFiles to (every file in folder folderPath)
repeat with theFile in theFiles

-- Michelle

--
if u cn rd ths u cn gt a gd jb, bt if u rt lk ths u r a mrn.

[demime 0.98b removed an attachment of type application/pgp-signature which had a name of PGP.sig]
_______________________________________________
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.


References: 
 >Variable declaration (From: "BADRINATH, NANDINI" <email@hidden>)

  • Prev by Date: Fonts in Illustrator CS
  • Next by Date: Re: quit the dock - possible?
  • Previous by thread: Variable declaration
  • Next by thread: Re: Variable declaration
  • Index(es):
    • Date
    • Thread