• 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: Font cache id number
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
email@hidden

Home Page: http://www.curtis2310.demon.co.uk/ 

Reed Cricket Club Home Page http://www.reedcc.co.uk    

 _______________________________________________
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

References: 
 >Font cache id number (From: Michael Curtis <email@hidden>)
 >Re: Font cache id number (From: Björn Lundin <email@hidden>)

  • Prev by Date: URL Access Scripting
  • Next by Date: Re: URL Access Scripting
  • Previous by thread: Re: Font cache id number
  • Next by thread: Compiling launches app
  • Index(es):
    • Date
    • Thread