• 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: Accessing the parent directory...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessing the parent directory...


  • Subject: Re: Accessing the parent directory...
  • From: "Marc K. Myers" <email@hidden>
  • Date: Tue, 13 Nov 2001 11:46:04 -0500
  • Organization: [very little]

> From: "kannan balu" <email@hidden>
> To: "applescript-us" <email@hidden>
> Subject: Accessing the parent directory...
> Date: Tue, 13 Nov 2001 18:10:09 +0530
>
> Hi AppleScript Experts,
>
> I need to clear a simply doubt in MAC. I need to access the parent directory
> from an AppleScript application.
>
> But I need to access through relative path but not with absolute path.
>
> Whether this is possible? Can any one help me?

set myPath to (path to me) as text
set AppleScript's text item delimiters to {":"}
set myPath to text items 1 thru -2 of myPath
set myPath to (myPath as text) & ":"
set AppleScript's text item delimiters to {""}

The variable "myPath" will contain the path to the container of the
applet. Is that what you're looking for?

Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074

[11/13/01 11:44:51 AM]


  • Prev by Date: setting timezone and NIC in X
  • Next by Date: Re: Line count of a referenced text file?
  • Previous by thread: Re: Accessing the parent directory...
  • Next by thread: Re: Accessing the parent directory...
  • Index(es):
    • Date
    • Thread