Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8429271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:17:21+00:00 2026-06-10T05:17:21+00:00

Iam building the .dmg file using ant script, inturn it uses applescript will peovide

  • 0

Iam building the .dmg file using ant script, inturn it uses applescript will peovide below.

Below is the error iam getting.

installer.mac:
    [mkdir] Created dir: /Users/damuammu/Desktop/spark-Mac/target/installer
    [mkdir] Created dir:
/Users/damuammu/Desktop/spark-Mac/target/MixTalx_app/.background
     [copy] Copying 1 file to
/Users/damuammu/Desktop/spark-Mac/target/MixTalx_app/.background
  [symlink] ln -s /Applications
/Users/damuammu/Desktop/spark-Mac/target/MixTalx_app/Applications
     [echo] Create tmp.dmg
     [exec] created: /Users/damuammu/Desktop/spark-Mac/target/tmp.dmg
     [echo] Attach tmp.dmg
     [exec] /dev/disk2                  Apple_partition_scheme
     [exec] /dev/disk2s1                Apple_partition_map
     [exec] /dev/disk2s2                Apple_HFS
        /Users/damuammu/Desktop/spark-Mac/target/tmp
     [exec] cp:
/Users/damuammu/Desktop/spark-Mac/build/installer/mac/RightDSStore: No
such file or directory
     [exec] Result: 1
     [exec] mac/dmg_spark.scpt: execution error: Finder got an error:
Can’t set item "Spark.app" of disk "MixTalx_2.6.3" to {140, 250}.
(-10006)

BUILD FAILED
/Users/damuammu/Desktop/spark-Mac/build/build.xml:775: exec returned: 1

Below is the applescript

on run {volumeName, artPath, theHeight, theWidth, x1, y1, x2, y2, iconSize}
    tell application "Finder"
        tell disk (volumeName as string)
            open

            delay 2

            set dsStore to "\"" & "/Volumes/" & volumeName & "/" & ".DS_STORE\""

            tell container window
                set current view to icon view
                set toolbar visible to false
                set statusbar visible to false
                set the bounds to {10, 10, 658, 482}
                set statusbar visible to false
            end tell

            set opts to the icon view options of container window
            set the arrangement of opts to not arranged
            set the icon size of opts to 128
            --iconSize
            set background picture of opts to file ".background:dmgBackground.png"

            -- Icon positions
            delay 2
            set position of item "Spark.app" to {140, 250}
            set position of item "Applications" to {395, 250}
            delay 2

            update without registering applications
        end tell


        delay 10
    end tell
end run

Please can anyone suggest on this issue.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T05:17:23+00:00Added an answer on June 10, 2026 at 5:17 am

    The error occurs in your ant script before the AppleScript is run. The error is here:

         [exec] cp:
    /Users/damuammu/Desktop/spark-Mac/build/installer/mac/RightDSStore: No
    such file or directory
    

    What the AppleScript does is make your mounted DMG volume look pretty. Since not everything gets put properly in the DMG, the Applescript later fails with:

         [exec] mac/dmg_spark.scpt: execution error: Finder got an error:
    Can’t set item "Spark.app" of disk "MixTalx_2.6.3" to {140, 250}.
    (-10006)
    

    However, what you need to do is fix the ant script failing with the first error.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am building dmg file by using ant tool, but I am getting error
Iam getting the following linker error while building an atl com dll which is
Iam building managed custom actions using .net 4.0, but when i package the installer
Iam using sencha touch for building mobile application, Ia m using card layout switch
Iam building a web portal which will be rented to customers on a hosted
I am building a GUI extension using SDL Tridion 2011 SP1. I want to
I am building a proof of concept for using Apache Camel. I am trying
I am building an invoice with grails, and for dynamical calculation I am using
I am building an MVC3 app that will require sending a mass email from
I am building a wordpress site using jQuery with cycle plugin to cycle through

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.