• 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
API Path Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

API Path Question


  • Subject: API Path Question
  • From: Jerrod Fowkes <email@hidden>
  • Date: Fri, 9 Jun 2006 13:56:30 -0700 (PDT)

It is my knowledge that Applescript needs to have hfs pathing to files. It also appears that iTunes needs to have an alias to a file as well on the file in order to add it to a playlist. Well I could have any directory on the filesystem and I was wondering if there was a Cocoa API call that could essentially convert

"/Users/dir 1/dir2/dir3" to

"anyvolumename:Users:dir 1: dir2:dir3"

This also needs to handle spaces and all those special characters.

I did look into some applescript code to pull this off, but it has failed. I have used the code :

tell application "System Events"
    set folderA to "/Users/dir 1/dir2/dir3"
    set final_folder to POSIX file folderA
end tell


any help is appreciated. -Jerrod

 __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: API Path Question
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: divide by zero exception in time() function
  • Next by Date: Re: [ANN] view hierarchy inspector
  • Previous by thread: divide by zero exception in time() function
  • Next by thread: Re: API Path Question
  • Index(es):
    • Date
    • Thread