• 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: 'Info for' Questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 'Info for' Questions


  • Subject: Re: 'Info for' Questions
  • From: Paul Berkowitz <email@hidden>
  • Date: Wed, 03 Mar 2004 07:10:06 -0800

On 3/3/04 6:28 AM, "email@hidden" <email@hidden> wrote:

>
> If I use ...
>
> tell application "Finder"
> set theFile1 to choose file with prompt "Choose a File:"
> set fileInfo to info for theFile1
>
> set folderStatus to (folder of fileInfo)
>
> end tell
>
> fileInfo & return & folderStatus
>
> ... I receive an 'AppleScript Error' Message of ...
> "Can't get folder of {name:"Boogle", creation date:date "Freitag, 13.
> Februar 2004 19.29.06 Uhr", ... short version:"", long version:""}.

The real Question here is - why in the world are you sticking all this in
the Finder?? Naturally the Finder's definition of 'folder' is going to take
precedence over 'info for' definition of 'folder'. Instead of walking you
through each and every example where this is happening, just do this:

remove the Finder tell block. Try all your examples again - no Finder
anywhere - then let us know if you see any anomaly.

--
Paul Berkowitz
_______________________________________________
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: 
 >'Info for' Questions (From: email@hidden)

  • Prev by Date: Re: Flatten Artwork in Illustrator
  • Next by Date: Re: Flatten Artwork in Illustrator
  • Previous by thread: 'Info for' Questions
  • Next by thread: Reply to 'Re: 'Info for' Questions'
  • Index(es):
    • Date
    • Thread