• 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: The script running finding a path to itself
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The script running finding a path to itself


  • Subject: Re: The script running finding a path to itself
  • From: Brett Conlon <email@hidden>
  • Date: Thu, 17 Nov 2005 12:15:18 +1000


Hi kai and Michael,

A big public THANKS to you both (I sent a thanks responding to Michael's email but forgot again to include the whole list [the habit of just responding is hard to break with 10 yrs on other lists where the email returns directly to the list]  ;-D)

Here's the exact code I need for the removing the old script to the trash:

set oldScript to path to me
tell application "Finder"
        activate
        move oldScript to trash
end tell

Now, any suggestions on how to get the modified date of a file?

Cheers,

Coj



kai <email@hidden>

When you save the script as an application, 'path to me' will return  
the script application as an alias.

So, if you want an alias, leave it as 'path to me'.

If you want a text path, I'd suggest you use 'path to me as Unicode  
text' (it's a bit safer than plain text for this purpose).

---
kai


 _______________________________________________
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

  • Follow-Ups:
    • Re: The script running finding a path to itself
      • From: "Gary (Lists)" <email@hidden>
    • Re: The script running finding a path to itself
      • From: kai <email@hidden>
References: 
 >Re: The script running finding a path to itself (From: kai <email@hidden>)

  • Prev by Date: Re: The script running finding a path to itself
  • Next by Date: Re: Using a prompt value from another handler
  • Previous by thread: Re: The script running finding a path to itself
  • Next by thread: Re: The script running finding a path to itself
  • Index(es):
    • Date
    • Thread