• 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: Finder scripting: OS 9 vs OS X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Finder scripting: OS 9 vs OS X


  • Subject: RE: Finder scripting: OS 9 vs OS X
  • From: John Delacour <email@hidden>
  • Date: Fri, 16 Aug 2002 09:13:42 +0100

At 4:10 pm -0400 15/8/02, Fox, Christopher B wrote:
>John:
>
> This coersion to a string fails on my machine with a type descriptor
>error. Nor can I coerce to an alias.

What do you see in your event log when you run your original failing script? That should give you a clue. I can't test it till I get the G4 back.

choose folder -- should result in alias "...."
set theFiles to every file of result
repeat with aFile in theFiles
-- aFile will be a reference to item n of theFiles
set fileInfo to info for aFile
end repeat

I know things are more intractable in OS X and that, as I recall, you can't coerce a 'document file' directly to 'alias pathstring', but a few moments of experimentation with the event log open will supply a solution.

JD
_______________________________________________
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.

  • Prev by Date: Re: Perl or Applescript w/ Excel
  • Next by Date: Re: Capturing File Names
  • Previous by thread: RE: Finder scripting: OS 9 vs OS X
  • Next by thread: Speed help please!
  • Index(es):
    • Date
    • Thread