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

Re: Proper use of set myFiles to every file in folder


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

I'm an idiot.  Forgot to wrap the lines in a Finder tell.

Thanks.
- Alex

On Feb 16, 2010, at 11:42 AM, Alex Zavatone wrote:

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:"

 _______________________________________________
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

References: 
 >Proper use of set myFiles to every file in folder (From: Alex Zavatone <email@hidden>)

  • Prev by Date: Proper use of set myFiles to every file in folder
  • Next by Date: Re: Recording and Exporting Video with QuickTime and AppleScript
  • Previous by thread: Proper use of set myFiles to every file in folder
  • Next by thread: Delete an Invisible File
  • Index(es):
    • Date
    • Thread