Performing scripts on founs applications
Performing scripts on founs applications
- Subject: Performing scripts on founs applications
- From: Alexey Proskuryakov <email@hidden>
- Date: Wed, 08 Dec 2004 18:48:14 +0300
Hi!
I need to perform certain actions on an application found during
installation. More precisely, I find an application (QuarkXPress), and then
I need to disable one of its XTensions by moving it into another folder.
There seemingly exists an undocumented way to get a path to the found
object from a postflight script: if the token is named "UserLocation", then
a shell variable DESTINATION_TOKEN is set to this path.
Maybe there exists a better way to achive the same result?
Here are the relevant files from the installer, for the reference:
TokenDefinitions.plist:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>UserLocation</key>
<array>
<dict>
<key>identifier</key>
<string>com.quark.QuarkXPresss</string>
<key>path</key>
<string/Applications/QuarkXPress 6.0/QuarkXPress.app</string>
<key>searchPlugin</key>
<string>CommonAppSearch</string>
</dict>
</array>
</dict>
</plist>
postflight:
#!/bin/sh
rm -rf "$DESTINATION_TOKEN/../XTension Disabled/OPI.xnt" > /dev/null
mv "$DESTINATION_TOKEN/../XTension/OPI.xnt" "$DESTINATION_TOKEN/../XTension
Disabled/OPI.xnt"
exit 0
- WBR, Alexey Proskuryakov
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden