Re: Accessing the parent directory...
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]