• 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: weird path to me error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: weird path to me error
  • Next by Date: Re: Changing Quark text styles and fonts
  • Previous by thread: Re: weird path to me error
  • Next by thread: filemaker pro 7 record ID issues
  • Index(es):
    • Date
    • Thread