Re: weird path to me error
Re: weird path to me error
- Subject: Re: weird path to me error
- From: "Laine Lee" <email@hidden>
- Date: Wed, 19 Jan 2005 17:01:02 -0600
Title: Path to snippet
Got OS X?
Place an empty text file named mtext.txt on your desktop.
Open the file in your favorite text editor and type in something like
"This is my data".
Save and close the file.
Now on your desktop create and launch an Applescript application from the following script:
set target to ((path to me) as string)
set postarget to (POSIX path of target)
set containercommand to "expr /" & (quoted form of postarget) & space & ":" & space & " '/\\(.*\\)/'"
set parent_path to POSIX file (do shell script containercommand)
set myPrefs to "mtext.txt"
read file ((parent_path & ":" & myPrefs) as string)
set myData to result
display dialog myData
Laine Lee
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden