• 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 producing path error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finder producing path error


  • Subject: Re: Finder producing path error
  • From: David Marshall <email@hidden>
  • Date: Mon, 25 Apr 2005 21:49:04 -0400

On Mon, 25 Apr 2005 16:02:10 -0400, Hudson Barton wrote:

Good question, but I still need the Finder because I have to use it to
make a new file on the desktop.


Just to reiterate the problem:

tell application "Finder" to get path to desktop as string

result==>>	"k8:Desktop:"

tell application "Finder" to get folder "k8:Desktop:"

result==>> "Finder got an error: Can't get folder \"k8:Desktop:\"."

This works for me (AS 1.9.3, OS X 10.3.8):

set thePath to path to desktop folder
tell application "Finder" to get folder thePath
--folder "Desktop" of folder "dkmarsh" of folder "Users" of startup disk of application "Finder"


- - - - -

Dave

_______________________________________________
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


  • Prev by Date: Re: List to a text representation of that list (revisited)
  • Next by Date: Re: List to a text representation of that list (revisited)
  • Previous by thread: Re: Finder producing path error
  • Next by thread: getting text of clipping
  • Index(es):
    • Date
    • Thread