I’m trying to create an installer package where I copy files from the package (in this case a screesaver file we created) to a temp folder.
from there, I need to rename the file (which applescript I have working) and then move it over to the /USERS/current_user/library/preferences/byhost folder.
I found this script from the forums here which seem to work only I would need to specify the source and target directories which wouldn’t work for me as I need to have it change from one installation to another.
set param_list to {"Abstract.slideSaver", "Mac HD:abstract:", "Mac HD:users:jng:Pictures"}
set {file_name, source_folder_path, dest_folder_path} to param_list
set file_reference to (source_folder_path & file_name) as alias
set dest_reference to dest_folder_path as alias
tell application "Finder"
move file_reference to dest_reference
end tell
for now, I’m trying to get the script moved and this works fine, how do I change “Mac HD:users:jng:Pictures” to a more dynamic “~/Pictures” and get it working?