• 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
Proper use of set myFiles to every file in folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Proper use of set myFiles to every file in folder


  • Subject: Proper use of set myFiles to every file in folder
  • From: Alex Zavatone <email@hidden>
  • Date: Tue, 16 Feb 2010 11:42:26 -0600

Hi.  I'm having a simple error here that has appeared to work in the past.  I'm selecting a folder with choose folder and then trying to get all the files in that folder.  Applescript then tells me it can't do that.

The code follows:

set myFolder to choose folder


set myFiles to every file of myFolder 

The error message I'm getting is "Can't get every file of alias "Macintosh HD:Optimized PNG:."

In the Log window, the error message is a little more cryptic.

Result:
error "Can’t get every file of alias \"Macintosh HD:Optimized PNG:mm_alert:\"." number -1728 from every file of alias "Macintosh HD:Optimized PNG:mm_alert:"

Any ideas?
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Proper use of set myFiles to every file in folder
      • From: Alex Zavatone <email@hidden>
  • Prev by Date: Re: Ability to run multiple scripts at once
  • Next by Date: Re: Proper use of set myFiles to every file in folder
  • Previous by thread: Re: Ability to run multiple scripts at once
  • Next by thread: Re: Proper use of set myFiles to every file in folder
  • Index(es):
    • Date
    • Thread