Copy files from selected folder to preferences folder....why not working?
Copy files from selected folder to preferences folder....why not working?
- Subject: Copy files from selected folder to preferences folder....why not working?
- From: "Fuller, Kirk (LVP)" <email@hidden>
- Date: Tue, 4 Dec 2001 12:00:31 -0500
This shouldn't be as hard as it has become, however I'm stumped on what I'm doing wrong.
I have an older PaperPort 2.0 scanner that is supported up through OS 8 where by you have the ability to change the scan settings from Normal, to Fine, or to 2 variations of Photo through a control panel. I got it working on OS 9, however you lose the ability to change the scan settings via the control panel. I've made copies of the settings files in OS 7.6 for all options, having stored them in a couple of folders that I created called "Normal", "Fine", etc.
What I'm trying to do is create a script that will prompt the user to select a value, "Normal", "Fine", etc. that will in turn select the respective folder "Normal", "Fine", etc. and copy the files from that folder into the Preferences folder on the startup disk. The script is allowing for the selection of the folder name and is returning the correct value, however it can't seem to find the folder.
The problem I'm having is that the finder is unable to see where exactly my script and the folders with it are at. True I could fix the location of the script and the folders, but I'd rather make it dynamic and allow the script and folders to reside anywhere, possibly on an ASIP server.
I've tried setting a pointer to the script with its path information using "set myPath to path to me", but it always gives me a Finder error when running it. I was hoping that the value myPath could be used to say "copy every item of folder selectedFolder to Preferences Folder", where the "selectedFolder" refers to a "set selectedFolder to (user selection variable) of the container of myPath".
Any information on this would be really helpful. Its not a life or death thing, but its something that I'm tired of banging my head against the desk about when I know its probably something that is so simple its funny.
Thanks,
Kirk
Macintosh Support
Georgia-Pacific -- Dixie Design Center
Easton, PA
email@hidden
-----------------------------------------------------------------------------------------------------
Information in this email does not reflect the views nor opinions of Georgia-Pacific or any of its subsidiaries and as such, Georgia-Pacific is not liable for any damage incurred through the implementation of the information contained within. All information is used at your own risk.
-----------------------------------------------------------------------------------------------------