Running a script to determine path before "Select destination" in a package?
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Hi, Sincerely, Lars --- Lars Holm Nielsen Dalslandsgade 8, D810 2300 København S telefon: 32 88 64 28 mobil: 22 15 51 80 http://www.hankat.dk _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... I've developed a plug-in for Adobe Photoshop. To be able to make Photoshop load this plugin, it must reside in either the application directory (e.g. /Applications/Adobe Photoshop CS) or in Photoshop's plug-in directory which may be localized or any user specified place (e.g. /Applications/Adobe Photoshop CS/Plug-Ins, /Applications/Adobe Photoshop CS/<localized name for plug-ins> or /User/someone/path/to/plug-dir). Because I'm only able to find the applications dir (/Applications/Adobe Photoshop CS), my package installer installs it there. This is not a very nice solution, since the plug-ins are supposed to be in the plug-ins dir, even though they get loaded in the applications dir. What I'm looking for is a way to insert a script specified value in the "Select destination.." part. As far as I can read in http://developer.apple.com/documentation/DeveloperTools/Conceptual/ SoftwareDistribution/index.html I can only change this with Tokens Definitions and Path Mappings. My problem is that I can only located the plug-in folder with at script, which a can use a search method for a token. It's because the plug-ins directory is specified in a file in ~/Library/Preferences. I can make script which reads this path, and I will know where to put my plug-in. So my question is, can I have a script determine the path of installtion, before the user is presented with "Select destionation..". If not, any suggestion to solving this problem, for instance with another installer will be appreciated. Though this is a free plug-in, so we can't afford licensing based on how many copies are distributed. This email sent to site_archiver@lists.apple.com
participants (1)
-
Lars Holm Nielsen