• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Copying files into packages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Copying files into packages (From: garrett <email@hidden>)

  • Prev by Date: Re: Copying files into packages
  • Next by Date: Re: Sending Control-T to Terminal
  • Previous by thread: Re: Copying files into packages
  • Next by thread: text to speech volume
  • Index(es):
    • Date
    • Thread