#!/usr/bin/perl use strict; use integer; no utf8; use warnings; # Installed languages (add more languages as needed): my @langs = ("se"); #Installation directory my $dir ="/Library/Application Support/Adobe/Linguistics/5.5/Providers/Plugins2/AdobeHunspellPlugin.bundle/Contents/"; # This is the installer package scripts folder: my $sourceDir = $0; $sourceDir = `dirname "$sourceDir"`; chomp $sourceDir; # Plist file my $plistfile = "Info.plist"; sub syscal { my ($cmd, @args) = @_; if(scalar(@args)){ # print STDERR "Divvun InDesign CS55 installer: command is: $cmd @args\n"; system(("$cmd", @args)); } else { # print STDERR "Divvun InDesign CS55 installer: command is: $cmd\n"; system("$cmd"); } } foreach my $lang (@langs){ syscal("$sourceDir/plist.sh", "$lang", "$dir/$plistfile"); } exit 0;