• 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" always failing in Automator action script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "info for" always failing in Automator action script


  • Subject: Re: "info for" always failing in Automator action script
  • From: Sparky <email@hidden>
  • Date: Fri, 17 Jun 2005 11:28:32 -0700


set itemInfo to (info for (path to users folder))

on run {aInputs, aParameters}
    tell application "Finder"
        set itemInfo to (info for "/Users")
    end tell
end run

"/Users" is not the type of path expected by info for. 

Thank you. But I just used /Users in my posting to show that it is definitely a location that exists. There is a folder on my root volume named '/Developers'. If I change my script to refer to that folder (or more generally any folder or file on any mounted volume) my script fails with the file not found problem I mentioned. 

Paul, Thank you also for your comments. In answer to your first question, no I haven't used 'info for' before. I use AppleScript very infrequently I'm afraid. (Java & C++ mostly.) After reading your response I'm still  stumped as to how to convert the POSIX paths that Automator passes to my action into aliases. 

Once again, any help is greatly appreciated.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: "info for" always failing in Automator action script
      • From: Christopher Nebel <email@hidden>
    • Re: "info for" always failing in Automator action script
      • From: Michelle Steiner <email@hidden>
References: 
 >"info for" always failing in Automator action script (From: Sparky <email@hidden>)
 >Re: "info for" always failing in Automator action script (From: Le Stang Jean-Baptiste <email@hidden>)

  • Prev by Date: Re: Inventory script
  • Next by Date: Re: "info for" always failing in Automator action script
  • Previous by thread: Re: "info for" always failing in Automator action script
  • Next by thread: Re: "info for" always failing in Automator action script
  • Index(es):
    • Date
    • Thread