• 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: extracting info from list returned by info for
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: extracting info from list returned by info for


  • Subject: Re: extracting info from list returned by info for
  • From: Israel Chauca Fuentes <email@hidden>
  • Date: Fri, 2 Oct 2009 22:14:33 -0500


On Oct 2, 2009, at 6:09 PM, Mari Masuda wrote:

What I really want to do, however, is extract the value of the "folder" property in the list returned by "info for". When I try the following, I get an error:

---script snippet---
set myFile to (choose file)

tell application "Finder"
set MARI to folder of (info for myFile) -- MARI should be false in this example
log MARI
end tell
---end script snippet---

I think the term "folder" inside the tell block referes to the Finder's class instead of the record property you want. This works here:


==
set myFile to (choose file)

tell application "Finder"
	set theInfo to info for myFile
end tell
set MARI to folder of theInfo
log MARI
==
_______________________________________________
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: extracting info from list returned by info for
      • From: Sander Tekelenburg <email@hidden>
    • Re: extracting info from list returned by info for
      • From: Mari Masuda <email@hidden>
References: 
 >extracting info from list returned by info for (From: Mari Masuda <email@hidden>)

  • Prev by Date: Re: extracting info from list returned by info for
  • Next by Date: Visual Basic versus AppleScript
  • Previous by thread: Re: extracting info from list returned by info for
  • Next by thread: Re: extracting info from list returned by info for
  • Index(es):
    • Date
    • Thread