Find Jobs
Hire Freelancers

AppleScript Help Assistance - fix errors make it work

$10-30 USD

Closed
Posted over 2 years ago

$10-30 USD

Paid on delivery
I have an applescript that is not complete. I need to take the variable grabbed from the file name and press it into a shell command to replace the variable and run the shell script. I need this completed within the next couple hours. Here is the apple script i have so far: on run {input, parameters} tell application "Finder" set fileName to name of file input set AppleScript's text item delimiters to "." if number of text items of fileName > 1 then set fileName to text items 1 thru -2 of fileName as text end if fileName end tell do shell script "/Users/nathan/Desktop/[login to view URL] " & fileName - - - - - - The .sh script looks like this: #!/bin/bash curl '[login to view URL]' -X POST \\ --data-urlencode 'To=+$fileName' \\ So I just need to replace that $fileName variable inside the .sh script with the text file name gathered from the file in finder. Help me out real quick?
Project ID: 32262124

About the project

1 proposal
Remote project
Active 2 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
1 freelancer is bidding on average $25 USD for this job
User Avatar
Hi. Why do you need 2 scripts for that? Is it possible to use just .sh script? - = - = - = - = - = - = - = - = - = - = - = - = - = -
$25 USD in 1 day
5.0 (1 review)
1.8
1.8

About the client

Flag of UNITED STATES
Ypsilanti, United States
5.0
3
Payment method verified
Member since Mar 3, 2016

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759) & Freelancer Online India Private Limited (CIN U93000HR2011FTC043854)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.