Re: The script running finding a path to itself
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