Re: Copying files into packages
Re: Copying files into packages
- Subject: Re: Copying files into packages
- From: Philip Aker <email@hidden>
- Date: Tue, 24 Sep 2002 20:29:11 -0700
On Tuesday, Sep 24, 2002, at 19:26 US/Pacific, garrett wrote:
Since the finder sees packages as folders, can I copy a file into a
package?
set theSource to "HD:file.jpg"
set the Dest to "HD:Apps:Application.app:Content:Resources:"
tell application "Finder"
copy theSource to theDest
end tell
I get an error:
-1728: Can't get the application file "Application.app" of folder
"Apps" of
startup disk.
Sorry if this is a duplicate posting.
1. The path should be:
"HD:Applications:SomeApp.app:Contents:Resources:"
2. I'd use POSIX paths as in:
do shell script "ditto -rsrc " & full/source/path & " " & full/dest/path
Philip Aker
http://www.aker.ca
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.