Friday, 15 June 2012

osx - Moving files in Applescript, got error: "Finder got an error: Handler can’t handle objects of this class." -


I am trying to transfer the files using ApplesScript, and every time I run the app, Receives an error. In the contents of the app, I have the files that I want to take (so if I distribute the app then users will not have to download the file separately) This is the reason I am using ( Path in the home folder as a path) and before adding a specific file path. This is my code:

  set source (path to the home folder as text) And "/Contents/Resources/finder.jpg") from Source 2 (as folder Set the path in the home folder) and transfer to source2 to move  
to move Resource / finder@2x.jpg ") Transfer Source to "Finder" to Source "Macintosh HD: System: Library: Core Services: Doc.Ap: Content: Resource: P> ps I checked about just about every related question / answer here, and Any help.

A simple display The alias path for the home folder Home (Macintosh HD: User: Your Name :) I think you want the path to me i nstead that points to your app.

  • <

    Summary: Try

      in the set source (path to me as text) & amp; "Content: Explorers .jpg")  

    Update: You can not use alias ... , better use ... as a nickname and I think, maybe duplicate Yeter is better here ...

      from the source set (from the source 2 to the path (and the text for me: "Content: Resource: Finder .jpg") As a nickname ("Path to me as Text" and "Content: Resources: Finder @ 2x.jpg") as "Macintosh HD: System: Library: Core Services: Doc.ap: Content: Resources:" The final place with the transfer of duplicate source 2 with the duplicate source of the destination source of the application "Finder" Do not let the  

    Enjoy, Michael / Hamburg


  • No comments:

    Post a Comment