• 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
Madness & frustration... What is a file? What is a Path?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Madness & frustration... What is a file? What is a Path?


  • Subject: Madness & frustration... What is a file? What is a Path?
  • From: Cliff Pruitt <email@hidden>
  • Date: Wed, 12 May 2004 10:14:37 -0400

Sigh... OK, can any of you brilliant AS veterans possibly explain the difference between files, references to files, aliases & paths? Also, how do you work with POSIX (/) and Mac styled (:) path delimiters? Which is the "correct" delimiter? They seem to both be used but under different circumstances. What is the easiest & most straightforward way to locate a file & work with it? How do you take a path and append text & then use it as a path to get to a file. For example, this never seems to work for me:

Tell Application "Whatever"
set homePath to path to home folder
set theFile to homePath & ":Documents:Folder 1:Folder 2:file.txt"
open theFile
End Tell

It seems like it should be straightforward but for some reason it never works the way I think it will...

Anyway, I'm just trying to get a good handle on this so any insight you guys can provide would be great. I'm sure I can return the favor someday.

- Cliff
_______________________________________________
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.


  • Follow-Ups:
    • Re: Madness & frustration... What is a file? What is a Path?
      • From: Nigel Smith <email@hidden>
    • Re: Madness & frustration... What is a file? What is a Path?
      • From: Walter Ian Kaye <email@hidden>
    • Re: Madness & frustration... What is a file? What is a Path?
      • From: Gnarlodious <email@hidden>
    • Re: Madness & frustration... What is a file? What is a Path?
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Reusability / inclusion of Apple Scripts?
  • Next by Date: Re: Help with recursion
  • Previous by thread: Re: Reusability / inclusion of Apple Scripts?
  • Next by thread: Re: Madness & frustration... What is a file? What is a Path?
  • Index(es):
    • Date
    • Thread