Monday, July 23, 2018
  • Index
  •  » Automator
  •  » can any body solve the string formatting problem.

#1 2006-01-09 12:27:02 am

aashi801
Member
Registered: 2005-12-25
Posts: 7

can any body solve the string formatting problem.

can any body tell, how string ot TEXT data are save internally in a file?

actually I am writing a script which set IPTC data in Image file, but when we set iptc fields to a file, the data is saved in absurd manner.

if we set IPTC value like this,   set file IPTC to file_name{caption value, caption writer, ............} then we get result as

dle2STXT>0ktxtTEXT0Caption Valuektstysty|0000

any body tell, why such type of raw data is saved in the file, and what the solution to solve it.


aashi

Offline

 

#2 2006-01-09 04:24:07 am

julifos
Administrator
From:: Malasaña, Madrid
Registered: 2002-11-20
Posts: 2014

Re: can any body solve the string formatting problem.

The thing you describe is not text, but "styled text". It may depend on the app or way you obtained your "text"... Anyway, you can simply specify (x as string), and you should obtain clean plain text (or use "x as Unicode text" if you need it).

Offline

 

#3 2006-01-13 06:27:09 am

aashi801
Member
Registered: 2005-12-25
Posts: 7

Re: can any body solve the string formatting problem.

by taking variable as string,then its not working again. the detailed explanation is below.

actually I am developing an automator action to set IPTC value by writing a script which set IPTC data in Image file, but when we set iptc fields to a file, the data is saved in absurd manner.

if we set IPTC value like this,  set file IPTC to file_name{caption value, caption writer, ............} then we get result as

dle2STXT>0ktxtTEXT0Caption Valuektstysty|0000

// where caption value are supplied by user in automator work flow.

any body tell, why such type of raw data is saved in the file, and what the solution to solve it.

script is as followes---

on run (input, parameters)
set caption_value to (|captionValue| of parameters) as string
set file IPTC to input{caption_value, ..........}
end run

Offline

 
  • Index
  •  » Automator
  •  » can any body solve the string formatting problem.

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)