Re: path to question?
Re: path to question?
- Subject: Re: path to question?
- From: "Marc K. Myers" <email@hidden>
- Date: Mon, 16 Jul 2001 23:59:36 -0400
- Organization: [very little]
>
Date: Mon, 16 Jul 2001 16:55:53 -0500
>
Subject: Re: path to question?
>
From: "Admin nimlok.com" <email@hidden>
>
To: "Goodman, Steve" <email@hidden>,
>
<email@hidden>
>
>
Thanks Steve for your reply.
>
>
Actually what I'm trying to do is get the path to the folder
>
that an application is in?
>
>
set filepath to path to creator "CDP3" as string
>
>
returns
>
>
file "HD I:Desktop Folder:VectorWorks:VectorWorks"
>
>
I want
>
>
file"HD I:Desktop Folder:VectorWorks:"
>
>
I've tried delimiting the string but get errors.
>
applescript acts like filepath is not a string,
>
not sure why?
>
>
any help would greatly be appreciated.
>
thanks
>
Dave
I think it's easier to use the Finder to get what you want:
tell application "Finder"
set x to (container of application file id "CDP3") as text
end tell
Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074
[7/16/01 11:59:20 PM]