openCivilisation
openCivilisation

Reputation: 936

In automator, using applescript, how can I append a folder name to a selected path correctly?

This automator script is an example. When i display the path it looks correct, but if i then try to copy files to that path I get an error.

example automator script

Upvotes: 1

Views: 928

Answers (1)

openCivilisation
openCivilisation

Reputation: 936

this is the fix - needed posix paths.

on run {input, parameters}

    set theFilePath to POSIX path of (input as string) & "/Samples" as string
    display dialog theFilePath

    return theFilePath
end run

Upvotes: 1

Related Questions