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

  • SEARCH
  • Home
  • 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 7791729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T21:58:44+00:00 2026-06-01T21:58:44+00:00

Hello I have recently created a C program for my UNI Computing course that

  • 0

Hello I have recently created a C program for my UNI Computing course that generates a web server at localhost:2020 and sends a bmp file of the Mandelbrot set. If you dont know what that is dont worry, its the url part thats important.
The URL is formatted as follows

http://X_(x coordinate)_(y coordinate)_(Zoom Level).bmp

so
http://localhost:2020/X_-0.15_1.03_56.bmp

returns

x: -0.15
y: 1.03
zoom: 56

My goal here is to have an automated process that can take in an x,y position (in the code is fine) and repetitively load the image from the server, each time with a zoom level increased by .01 and save it to either a folder or preferably load them all into a file to be presented as a video.
Im well aware that this would be easier to do in C and just have it save to the file but my goal is to familiarise myself with applescript/automator or a similar program with tasks like this.
Its designed to be a fun learning experience for myself and I will really appreciate any help I can get thank you.

  • 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-01T21:58:46+00:00Added an answer on June 1, 2026 at 9:58 pm

    Something like this may work for part of your task. We are downloading all of the images (at each zoom level) using the unix command line utility “curl”. Each image is saved with the name from the url to a folder that you choose. We put this code inside a repeat loop so we can increment the zoom level.

    The script shows lots of stuff, particularly how to insert variables directly into an applescript (e.g. hard-coded) and how to get input from the user. It also shows how to run command line utilities from within an applescript (e.g. curl).

    So this script should get you started. See if it helps.

    -- hard-coded variables
    set minZoomLevel to 0
    set maxZoomLevel to 10
    set zoomIncrement to 0.1
    
    -- get user input variables
    set outputFolder to choose folder with prompt "Pick the output folder for the images"
    set xDialog to display dialog "Enter the X coordinate" default answer ""
    set yDialog to display dialog "Enter the Y coordinate" default answer ""
    
    set posixStyleOutputFolder to POSIX path of outputFolder
    set x to text returned of xDialog
    set y to text returned of yDialog
    
    set i to minZoomLevel
    repeat while i is less than or equal to maxZoomLevel
        set fileName to "X_" & x & "_" & y & "_" & (i as text) & ".bmp"
        set theURL to "http://localhost:2020/" & fileName
        do shell script "curl " & theURL & " -o " & quoted form of (posixStyleOutputFolder & fileName)
        set i to i + zoomIncrement
    end repeat
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an apache web server running on my ubuntu server box. Recently, I
Hello recently i have taken a backup of my server files & deleted all
Recently, I have a try to build and run sample hello world program of
Hello we have an SQL server application running over a low bandwith connection. We
Hello I have the following code namespace ConsoleApplication2 { class Program { static void
I'm pretty new to J2ME development scene. And for that matter, have just recently
Hello I have recently uploaded an application to the app store and it got
Introduction Hello folks, I recently learned to program in C! (This was a huge
Hello, we have recently updated an application to Rails 3.0.4 (3.0.5 on online devel
Hello I have a question recently I seen more and more sites using #/pagename

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.