

Paste the following code into script editor and save it as an Application or Application Bundle (doesn't matter which): on open thefileĭo shell script "mv " & POSIX path of thefile & " ~/Library/Application\ Support/iWork/Pages/Templates/My\ Templates/" Another possibility would be to make a simple Applescript droplet that uses a shell script to move the file you drag onto it to the path you want. And I think you would have to make a symbolic link as apposed to a hard link, which some file systems might not support (All macs should though). But I think it just converts ~ to the actual path of your home directory when you use it. In response to your comment: I am not sure if this is possible. So your folder would be ~/Library/Application Support/iWork/Pages/Templates/My Templates. The ~ folder represents the users home directory.

The Problem is, while it works on my mac, I can not use it being inside the DMG file. Set outputFolder to (path to application support folder from user domain as text) & "iWork:Pages:Templates:My Templates:"ĭo shell script "/bin/mkdir -p " & quoted form of POSIX path of outputFolder So if someone else opens it, the alias points to the dir with my username, which of course does not exist on a different mac.Ĭombining all of your comments to the following I get a droplet working the way I want. But while it works fine with the Application folder, the template folder always has my username in it.
PAGES DMG MAC INSTALL
My Problem is, that I want to put it into a DMG so people can easily install the template. The directory is /Users/USERNAME/Library/Application Support/iWork/Pages/Templates/My Templates
-Step-7.jpg)
I want to put an alias to a fixed folder, namely the iWorks template folder into a DMG.
