• 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: AS Application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AS Application


  • Subject: Re: AS Application
  • From: Yvan KOENIG <email@hidden>
  • Date: Mon, 28 Sep 2009 16:31:32 +0200


Le 28 sept. 2009 à 15:45, Steffan A. Cline a écrit :

(choose file with prompt "Select a .js or .css file to be

minimzed." of type allowedFileTypes with multiple selections allowed)



It this piece of code behaving flawlessly on Swedish system ?

property allowedFileTypes : {}

set mycss to (path to scripts folder as text) & "localeSpecific.css"
tell application "System Events" to set cssID to get type identifier of disk item mycss

set my allowedFileTypes to {cssID, "com.netscape._javascript_-source"}

choose file with prompt "Select a .js or .css file to be
minimized." of type allowedFileTypes with multiple selections allowed without invisibles

As the UTI for css files is built on the fly, I stored a smal css file in my Scripts folder and so I may grab the UTI thru a simple instruction.


Yvan KOENIG (VALLAURIS, France) lundi 28 septembre 2009 16:31:03


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Re: AS Application (From: "Steffan A. Cline" <email@hidden>)

  • Prev by Date: Re: AS Application
  • Next by Date: Re: Manipulating text
  • Previous by thread: Re: AS Application
  • Next by thread: Re: AS Application
  • Index(es):
    • Date
    • Thread