Re: Dealing with Package files
Re: Dealing with Package files
- Subject: Re: Dealing with Package files
- From: Adam Wuellner <email@hidden>
- Date: Tue, 12 Apr 2005 14:09:04 -0500
On Apr 12, 2005 1:28 PM, Stephen Lanza <email@hidden> wrote:
> I use FolderSynchronizer to backup files on my mac and have run into a odd
> situation with Virtual PC drives. They are saved as package files with the
> following structure:
>
> WinXPPro Drive
> - BaseDrive.vhd
> - MainPackageFile
In version 6, this is how my vpc package is organized:
Win XP Pro.vpc6
Configuration.vkd
IconCache/
MainPackageFile
StartMenu.plist
Win XP Pro.vhdp/
BaseDrive.vhd
MainPackageFile
Are you sure you want to update the container of the BaseDrive.vhd file
(indeed, a package), or that folder's containing folder (the top level
package folder)?
Anyway, just thought it might be prudent to point out the inconsistency
before proceeding...
> Unfortunately, the package modify date does not change. Only the
> BaseDrive.vhd file's modify date is updated when Virtual PC modifies the
> virtual drive.
>
> Is there a way to use applescript to get the modify date of the
> BaseDrive.vhd file and then update the package modify date with it?
Sure.
-- begin script
property vpc_hd_path : "MacHD:Users:usurer:Documents:Virtual PC
List:Win XP Pro.vpc6:Win XP Pro.vhdp:BaseDrive.vhd"
set mod_date to modification date of (info for file vpc_hd_path)
tell application "Finder"
tell (file vpc_hd_path)'s container's container to set its
modification date to mod_date
-- the above is for the top level package
-- just use one less 'container' for the .vhdp package
end tell
-- end script
> I figure that this is the best way to get the date updated so that
> FolderSynchronizer will then backup the file on its next run.
How are you going to trigger it?
> Thanks.
>
> Stephen Lanza
> Software Complement
HTH,
Adam Wuellner
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden