Re: Font cache id number
Re: Font cache id number
- Subject: Re: Font cache id number
- From: Michael Curtis <email@hidden>
- Date: Mon, 15 May 2006 21:32:15 +0100
If I can't do it by finding the ID. I could test each folder for read/write permission and find the correct folder that way. How can I do that in Applescript?
Best wishes
Michael On 15 May 2006, at 18:00, Björn Lundin wrote:
15 maj 2006 kl. 18.36 skrev Michael Curtis: Hi,
I would like to write a script that deletes the font cache for the logged on user. The cache is held in Library/caches/com.apple.ATS/ and then a folder 501, 502 etc. How can I find out which number the logged on user is?
On my machine the environment-variable UID is set.Question is, how do one access environment variables from applescript? A quick look in 'The definitive guide' did not reveal anything obvius to me.
set The_UID to do shell script "echo $UID"
would perhaps work
/Björn
Björn Lundin bnl at spray dot se
"Not only have you managed to sink every aircraft carrier and battleship you have ever sailed on, but now you've gone and knackered a gravy boat"
Del Boy speaking to Uncle Albert - Only Fools And Horses 1996
Michael Curtis
|
_______________________________________________
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