Đã Đóng

AppleScript Help Assistance - fix errors make it work

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


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?

Kĩ năng: Mac OS, Shell Script, Applescript

Xem nhiều hơn: fix errors occurring websites, bonuses fix errors, download fix errors script, fix errors amazon jobs, can fix errors page, fix javascript doesnt work ie7, fix errors xml, find fix errors, fix errors loading page, fix errors rockettheme, fix errors dns server 2003 environment, fix errors firefox add, javascript fix errors free, fix errors video, fix joomla template work ie6, fix joomla template work virtuemart

Về Bên Thuê:
( 3 nhận xét ) Ypsilanti, United States

ID dự án: #32262124

1 freelancer đang chào giá trung bình $25 cho công việc này


Hi. Why do you need 2 scripts for that? Is it possible to use just .sh script? - = - = - = - = - = - = - = - = - = - = - = - = - = -

$25 USD trong 1 ngày
(1 Nhận xét)